@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
}
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.register-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 30px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.header {
    text-align: center;
    margin-bottom: 10px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.subtitle {
    color: #718096;
    font-size: 13px;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 8px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 4px;
    color: #2d3748;
    font-weight: 500;
    font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 9px 11px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

/* Remove browser's default password toggle */
.password-wrapper input::-ms-reveal,
.password-wrapper input::-ms-clear {
    display: none;
}

.password-wrapper input::-webkit-credentials-auto-fill-button,
.password-wrapper input::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #718096;
    width: 20px;
    height: 20px;
    user-select: none;
}

.toggle-password:hover {
    color: #4a5568;
}

.toggle-password svg {
    width: 100%;
    height: 100%;
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 8px;
    margin-bottom: 10px;
}

.checkbox-group input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 13px;
    color: #4a5568;
    font-weight: 400;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 9px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.footer {
    text-align: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    color: #718096;
    font-size: 13px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: #f56565;
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 968px) {
    .register-card {
        max-width: 450px;
        padding: 18px 24px;
    }

    h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .register-card {
        max-width: 100%;
        padding: 16px;
        border-radius: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    h1 {
        font-size: 18px;
    }

    .subtitle {
        font-size: 12px;
    }

    label {
        font-size: 12px;
    }

    input {
        font-size: 13px;
        padding: 8px 9px;
    }

    .password-wrapper input {
        padding-right: 38px;
    }

    .btn-submit {
        font-size: 13px;
        padding: 8px;
    }

    .footer-text {
        font-size: 12px;
    }
}

/* State when an input has an error */
input.input-error {
border-color: #f56565 !important;
background-color: #fffaf0;
}

/* The error message text style */
.error-text {
color: #f56565;
font-size: 12px;
margin-top: 4px;
display: block;
text-align: left;
}
.phone-container {
position: relative;
display: flex;
align-items: center;
}

.flag-icon {
position: absolute;
left: 12px;
font-size: 18px;
pointer-events: none;
}

/* Push text to the right to make room for flag + +91 */
/*#phone {*/
/*    padding-left: 37px !important;*/
/*}*/

/* Ensure error messages appear below the container */
.phone-container + .error-message {
margin-top: 4px;
}
.phone-input-wrapper {
display: flex;
border: 2px solid #e2e8f0;
border-radius: 8px;
overflow: hidden; /* Ensures the background doesn't leak past the corners */
transition: all 0.2s ease;
}

.prefix-box {
background: #f7fafc; /* Light gray background for the separate box */
border-right: 2px solid #e2e8f0; /* The divider line */
padding: 0 12px;
display: flex;
align-items: center;
font-size: 14px;
font-weight: 500;
color: #4a5568;
pointer-events: none;
user-select: none;
}

.phone-input-wrapper input {
border: none !important; /* Remove the individual input border */
border-radius: 0 !important;
padding: 9px 12px !important;
width: 100%;
}

/* Change border color for the whole wrapper when the input is focused */
.phone-input-wrapper:focus-within {
border-color: #667eea;
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.12);
}

/* Error state for the separate box style */
.phone-input-wrapper.input-error {
border-color: #f56565 !important;
}