:root {
    --primary-light: #7AC6D2;
    --primary-medium: #3D90D7;
    --primary-dark: #3A59D1;
    --secondary-dark: #B5FCCD;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    background:
        linear-gradient(
            135deg,
            rgba(0, 123, 131, 0.9),
            rgba(78, 177, 186, 0.85)
        ),
        url("../images/images.jpeg") center / cover no-repeat;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}


/* Background Pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(58, 43, 50, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Auth Container */
.auth-container {
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.98)
        ),
        url("../images/auth-container-bgg.jpg") center / cover no-repeat;

    border-radius: 20px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 8px 20px rgba(0, 123, 131, 0.1);

    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    display: flex;
    position: relative;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Left Panel - Welcome Section */
.welcome-panel {
    flex: 1;
    background: linear-gradient(135deg, #007B83 0%, #0A5F66 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.welcome-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(78, 177, 186, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hospital-icon {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hospital-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hospital-icon i {
    font-size: 3.5rem;
    color: var(--white);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.features-list {
    list-style: none;
    text-align: left;
    position: relative;
    z-index: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.95;
}

.features-list i {
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    width: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 50%;
}

/* Right Panel - Form Section */
.form-panel {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #007B83;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: var(--gray-medium);
    font-size: 1rem;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: #333;
}

.form-input:focus {
    outline: none;
    border-color: #007B83;
    box-shadow: 0 0 0 4px rgba(0, 123, 131, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #9e9e9e;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-input {
    padding-left: 50px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #007B83;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-with-icon .form-input:focus ~ .input-icon {
    color: #0A5F66;
}

/* Password Input Wrapper with Toggle Button */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-left: 50px;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    z-index: 10;
}

.toggle-password:hover {
    background-color: rgba(0, 123, 131, 0.08);
    color: #007B83;
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

.toggle-password i {
    font-size: 1rem;
    pointer-events: none;
}

/* Select Dropdown */
.form-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: var(--white);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #007B83;
    box-shadow: 0 0 0 4px rgba(0, 123, 131, 0.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007B83 0%, #0A5F66 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 123, 131, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 131, 0.4);
    background: linear-gradient(135deg, #0A5F66 0%, #007B83 100%);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 131, 0.3);
}

/* Form Links */
.form-links {
    text-align: center;
}

.form-link {
    color: #007B83;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-link:hover {
    color: #0A5F66;
    text-decoration: underline;
}

/* Toggle Forms */
.form-toggle {
    display: none;
}

.form-toggle.active {
    display: block;
}

/* Error Messages */
.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--danger);
    font-size: 0.9rem;
}

/* Success Messages */
.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
    font-size: 0.9rem;
}

/* Loading State */
.submit-btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 4px;
    background-color: var(--primary-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-weak .strength-fill {
    width: 33%;
    background-color: var(--danger);
}

.strength-medium .strength-fill {
    width: 66%;
    background-color: var(--warning);
}

.strength-strong .strength-fill {
    width: 100%;
    background-color: var(--success);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--gray-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 450px;
        margin: 10px;
    }

    .welcome-panel {
        padding: 40px 30px;
        min-height: 300px;
    }

    .hospital-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .hospital-icon i {
        font-size: 2rem;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .form-panel {
        padding: 40px 30px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .features-list {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .auth-container {
        margin: 0;
    }

    .welcome-panel,
    .form-panel {
        padding: 30px 20px;
    }
}