* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 60px;
    display: none;
}

.auth-right {
    flex: 1;
    padding: 60px;
}

.brand-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.brand-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h2 {
    font-size: 2rem;
    color: #4F46E5;
    margin-bottom: 10px;
}

.auth-header p {
    color: #64748B;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #334155;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4F46E5;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.btn-primary {
    padding: 15px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E2E8F0;
}

.auth-footer a {
    color: #4F46E5;
    text-decoration: none;
    font-weight: 600;
}

@media (min-width: 768px) {
    .auth-left {
        display: block;
    }
}

/* ========================================
   PASSWORD TOGGLE STYLES - UPDATED
   Replace the previous password toggle CSS with this
   ======================================== */

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Make sure the input takes full width */
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 50px !important; /* Extra space for eye icon */
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 0 8px 8px 0;
}

.password-toggle-btn:hover {
    color: #4F46E5;
    background: rgba(79, 70, 229, 0.05);
}

.password-toggle-btn:active {
    transform: scale(0.95);
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.3);
}

/* SVG Icon Styles */
.password-toggle-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .password-toggle-btn {
        width: 40px;
    }

    .password-input-wrapper input[type="password"],
    .password-input-wrapper input[type="text"] {
        padding-right: 45px !important;
    }

    .password-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
}