﻿:root {
    --primary-green: #2e7d32;
    --primary-green-light: #4caf50;
    --primary-green-dark: #1b5e20;
    --secondary-teal: #00695c;
    --accent-blue: #0277bd;
    --light-bg: #f8fdf8;
    --white: #ffffff;
    --light-gray: #e8f5e9;
    --medium-gray: #c8e6c9;
    --text-dark: #1b5e20;
    --text-light: #4caf50;
    --error-color: #d32f2f;
    --success-color: #388e3c;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(0, 105, 92, 0.05) 0%, transparent 20%);
}

/* Large screen layout */
@media (min-width: 992px) {
    body {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cg fill-opacity='0.1'%3E%3Ccircle fill='%232e7d32' cx='400' cy='400' r='600'/%3E%3Ccircle fill='%2300695c' cx='400' cy='400' r='500'/%3E%3Ccircle fill='%234caf50' cx='400' cy='400' r='300'/%3E%3Ccircle fill='%231b5e20' cx='400' cy='400' r='100'/%3E%3Ccircle fill='%230277bd' cx='400' cy='400' r='50'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(0, 105, 92, 0.05) 0%, transparent 20%);
        background-size: cover, auto, auto;
        background-position: center, 0 0, 0 0;
        background-repeat: no-repeat, no-repeat, no-repeat;
    }

    .login-container {
        display: flex;
        width: 100%;
        max-width: 1000px;
        height: 600px;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--box-shadow);
    }

    .welcome-section {
        flex: 1;
        background: linear-gradient(135deg, var(--primary-green), var(--secondary-teal));
        color: white;
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

        .welcome-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E");
            opacity: 0.1;
        }

    .welcome-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
        position: relative;
        z-index: 1;
    }

    .welcome-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        position: relative;
        z-index: 1;
    }

    .features-list {
        list-style: none;
        margin-top: 2rem;
        position: relative;
        z-index: 1;
    }

        .features-list li {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
        }

        .features-list i {
            margin-right: 10px;
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.8);
        }

    .medical-icons-large {
        display: flex;
        margin-top: 2rem;
        gap: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .medical-icon-large {
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.8);
        transition: var(--transition);
    }

        .medical-icon-large:hover {
            color: white;
            transform: translateY(-5px);
        }

    .form-section {
        flex: 1;
        background-color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
}

/* Small screen layout */
@media (max-width: 991px) {
    .welcome-section {
        display: none;
    }

    .login-container {
        width: 100%;
        max-width: 420px;
    }
}

.login-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-green), var(--secondary-teal));
    }

.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo-img {
    width: 180px;
    height: auto;
    transition: var(--transition);
}

    .auth-logo-img:hover {
        transform: scale(1.03);
    }

.login-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    background-color: var(--light-bg);
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-green);
        box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
    }

.input-group {
    display: flex;
    position: relative;
}

    .input-group .form-control {
        padding-right: 2.5rem;
    }

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

    .password-toggle:hover {
        color: var(--primary-green);
    }

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.form-check-input {
    margin-right: 0.5rem;
    accent-color: var(--primary-green);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.alert {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: none;
}

.alert-danger {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.alert-success {
    background-color: rgba(56, 142, 60, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(56, 142, 60, 0.2);
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: var(--accent-blue);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

    .forgot-password:hover {
        text-decoration: underline;
        color: var(--secondary-teal);
    }

.btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    margin-bottom: 0.75rem;
}

    .btn-primary:hover {
        background-color: var(--primary-green-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3);
    }

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--text-dark);
    border: 1px solid var(--medium-gray);
}

    .btn-secondary:hover {
        background-color: var(--medium-gray);
    }

.medical-icons {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.medical-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: var(--transition);
}

    .medical-icon:hover {
        color: var(--secondary-teal);
        transform: translateY(-3px);
    }

@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .auth-logo-img {
        width: 150px;
    }

    .login-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 125, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}
