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

:root {
    --primary-color: #FF6B47;
    --primary-dark: #E55A3C;
    --secondary-color: #FF8A65;
    --accent-color: #FFF3E0;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #BDC3C7;
    --background: #FFFFFF;
    --background-light: #F8F9FA;
    --border-color: #E1E8ED;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(255, 255, 255, 0.9) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.auth-nav {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 71, 0.1);
}

/* Main Content */
.auth-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 140px);
}

/* Form Section */
.auth-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: white;
    position: relative;
}

.auth-header {
    margin-bottom: 40px;
    text-align: left;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.auth-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.auth-form {
    max-width: 400px;
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    padding-left: 50px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 71, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 12px;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    margin-top: 12px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
    margin: 16px 0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.auth-links {
    text-align: center;
    margin: 16px 0;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: var(--text-light);
    font-size: 0.875rem;
    position: relative;
}

.auth-options {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover {
    text-decoration: underline;
}

.admin-toggle {
    margin-top: 32px;
    text-align: center;
}

/* Illustration Section */
.auth-illustration {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(255, 255, 255, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.illustration-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
}

.medical-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Doctor Character */
.doctor-character {
    position: absolute;
    left: 15%;
    top: 20%;
    width: 100px;
    height: 180px;
    z-index: 3;
}

.doctor-head {
    width: 50px;
    height: 50px;
    background: #F4A261;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.doctor-body {
    width: 40px;
    height: 60px;
    background: #F4A261;
    border-radius: 20px 20px 10px 10px;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.doctor-coat {
    width: 70px;
    height: 100px;
    background: white;
    border-radius: 35px 35px 8px 8px;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--primary-color);
}

.stethoscope {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
}

/* Nurse Character */
.nurse-character {
    position: absolute;
    right: 15%;
    top: 30%;
    width: 100px;
    height: 180px;
    z-index: 3;
}

.nurse-head {
    width: 50px;
    height: 50px;
    background: #E76F51;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.nurse-body {
    width: 40px;
    height: 60px;
    background: #E76F51;
    border-radius: 20px 20px 10px 10px;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.nurse-uniform {
    width: 70px;
    height: 100px;
    background: #264653;
    border-radius: 35px 35px 8px 8px;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--secondary-color);
}

/* Heart Icon */
.heart-icon {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow);
    animation: heartbeat 2s infinite;
    z-index: 2;
}

@keyframes heartbeat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* Medicine Elements */
.medicine-elements {
    position: absolute;
    bottom: 15%;
    left: 20%;
    right: 20%;
}

.pill {
    width: 20px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 10px;
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.pill-1 {
    left: 20%;
    animation-delay: 0s;
}

.pill-2 {
    right: 20%;
    animation-delay: 1s;
}

.bottle {
    width: 40px;
    height: 50px;
    background: var(--accent-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px 8px 15px 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.3;
    animation: floatAround 4s ease-in-out infinite;
}

.float-1 {
    top: 25%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.float-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 3s;
}

@keyframes floatAround {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Contact Footer */
.contact-footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-item i {
    color: var(--primary-color);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Registration Form Styles */
.register-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.form-row .form-group {
    margin-bottom: 0;
}

select {
    width: 100%;
    padding: 16px 20px;
    padding-left: 50px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-light);
    appearance: none;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 71, 0.1);
}

.checkbox-group {
    margin: 32px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Forgot Password Styles */
.forgot-password-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto 30px;
    box-shadow: var(--shadow);
}

.illustration-content {
    text-align: center;
    padding: 40px;
}

.illustration-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.illustration-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-content {
        grid-template-columns: 1fr;
    }
    
    .auth-illustration {
        display: none;
    }
    
    .auth-form-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .auth-nav {
        padding: 20px;
    }
    
    .auth-form-section {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .contact-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .form-group input {
        padding: 14px 18px;
        padding-left: 45px;
    }
}
