* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

img {
    max-width: 100%;
}

/* Auth Container */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-left {
    position: relative;
    overflow: hidden;
}

.auth-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 157, 124, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
    text-align: center;
}

.auth-overlay h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.auth-overlay p {
    font-size: 18px;
    line-height: 1.6;
}

/* Auth Right Side */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #F5F5F0;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #8B9D7C;
    font-size: 28px;
    font-weight: 600;
}

.auth-logo img {
    height: 45px;
}

.auth-form-container h2 {
    text-align: center;
    color: #8B9D7C;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    color: #C9A961;
    margin-right: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B9D7C;
    box-shadow: 0 0 0 3px rgba(139, 157, 124, 0.1);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
}

.toggle-password:hover {
    color: #8B9D7C;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-link {
    color: #8B9D7C;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    color: #C9A961;
}

/* Buttons */
.btn-full {
    width: 100%;
}

.btn-primary {
    background: #C9A961;
    color: white;
    border: 2px solid #C9A961;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: transparent;
    color: #C9A961;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 13px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    color: #666;
    font-size: 15px;
}

.auth-footer a {
    color: #8B9D7C;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: #C9A961;
}

.back-home {
    text-align: center;
    margin-top: 30px;
}

.back-home a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-home a:hover {
    color: #8B9D7C;
}

/* OTP Input */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #8B9D7C;
    box-shadow: 0 0 0 3px rgba(139, 157, 124, 0.1);
}

/* Resend OTP */
.resend-otp {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.resend-otp button {
    background: transparent;
    border: none;
    color: #8B9D7C;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.resend-otp button:hover {
    color: #C9A961;
}

.resend-otp button:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .auth-right {
        min-width: 0;
        padding: max(20px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
    }

    .auth-form-container {
        min-width: 0;
        padding: 30px 18px;
    }
    
    .auth-overlay h1 {
        font-size: 32px;
    }

    .auth-logo {
        margin-bottom: 28px;
    }

    .auth-logo a,
    .auth-form-container h2 {
        font-size: 26px;
    }

    .form-options {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .otp-inputs {
        width: 100%;
        gap: 6px;
    }

    .otp-input {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: 50px;
        height: 48px;
        font-size: 20px;
    }
}