/* 1. Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: #dcdcdc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 440px;
    text-align: center;
}

/* 2. Header Styles */
.header h1 {
    color: #1a374d;
    font-size: 32px;
    margin-bottom: 8px;
}

.header p {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 30px;
}

/* 3. Card Styles */
.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.field-group {
    text-align: left;
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a374d;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.password-box {
    position: relative;
}

.password-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    cursor: pointer;
}

/* 4. Buttons and Links */
.forgot-pass {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-pass a {
    font-size: 12px;
    color: #1a374d;
    text-decoration: none;
}

.login-btn {
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
    margin-bottom: 20px;
}

.signup-prompt {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 25px;
}

.signup-prompt a {
    text-decoration: none;
    color: #1a374d;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 25px;
}

.google-login {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legal-footer {
    margin-top: 30px;
    font-size: 11px;
    color: #7f8c8d;
}




/* --- 5. MEDIA QUERIES --- */

/* For Tablets and smaller desktops */
@media (max-width: 768px) {
    .login-card {
        padding: 30px;
    }
}

/* For Mobile Phones */
@media (max-width: 480px) {
    body {
        align-items: flex-start; /* Move card higher on mobile */
        padding-top: 50px;
    }

    .header h1 {
        font-size: 26px;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .login-btn {
        padding: 12px;
    }
}


.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4); /* transparent white */
  backdrop-filter: blur(4px); /* glass effect 🔥 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #1F3A5F; /* your theme color */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
