* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

html,
body {
    height: 100%;
    overflow: hidden;
    /* Removes main page scrolling */
}

body {
    background-color: #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

/* 2. Registration Card */
.card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    max-height: 98vh;
    /* Keeps card within viewport */
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    overflow-y: auto;
    /* Allows scrolling inside the card if needed */
}

/* Hide card scrollbar for clean look */
.card::-webkit-scrollbar {
    display: none;
}

h2 {
    color: #1e293b;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* 3. Form Styling */
.form-group {
    text-align: left;
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #1e293b;
}

.password-container {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
}

/* 4. Referral Section */
.referral-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.apply-btn {
    background-color: #1e293b;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.submit-btn {
    width: 100%;
    background-color: #1e293b;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

/* 5. Info Alert Box */
.info-alert {
    background-color: #eff6ff;
    color: #2563eb;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin-bottom: 15px;
    line-height: 1.4;
}

.login-footer {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 15px;
}

.login-footer a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
}

/* 6. Divider & Google Button */
.divider {
    position: relative;
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 15px;
}

.divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 10px;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
}

.google-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}

/* --- 7. Responsive Media Queries --- */
@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
    }

    .referral-row {
        flex-direction: row;
    }

    /* Keeps Apply button next to input */
    .apply-btn {
        padding: 0 15px;
    }
}

/* Landscape Mobile adjustment */
@media (max-height: 500px) {
    body {
        align-items: flex-start;
    }

    .card {
        margin-top: 10px;
    }
}


.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);
  }
}
