/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
}

.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: 0;
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.3;
}

.medical-icon-container {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Login Card */
.login-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo i {
    font-size: 4rem;
    color: #4A90E2;
    display: inline-block;
}

/* Title */
.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 2rem;
}

/* Form */
.login-form {
    width: 100%;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #95a5a6;
    font-size: 1.1rem;
    z-index: 3;
    pointer-events: none;
}

.input-icon-right {
    position: absolute;
    right: 1rem;
    color: #95a5a6;
    font-size: 1.1rem;
    z-index: 3;
    cursor: pointer;
    transition: color 0.3s;
}

.input-icon-right:hover {
    color: #4A90E2;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #4A90E2;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-control::placeholder {
    color: #bdc3c7;
}

/* Password Input */
#password-input {
    padding-right: 3rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #4A90E2;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
}

.form-check-input:checked {
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.form-check-label {
    color: #2c3e50;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

.forgot-password {
    color: #4A90E2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* Sign In Button */
.btn-primary {
    background-color: #4A90E2;
    border: none;
    border-radius: 12px;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Register Link */
/* Book Appointment Link */
.book-appointment-link {
    text-align: center;
}

.book-appointment-link .btn-outline-primary {
    border: 2px solid #4A90E2;
    border-radius: 12px;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4A90E2;
    background-color: transparent;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.book-appointment-link .btn-outline-primary:hover {
    background-color: #4A90E2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.book-appointment-link .btn-outline-primary:active {
    transform: translateY(0);
}

.book-appointment-link .btn-outline-primary i {
    margin-right: 0.5rem;
}

.register-link {
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.register-link a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* Validation Errors */
.text-danger {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .decorative-elements {
        display: none;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .login-logo i {
        font-size: 3rem;
    }

    .login-title {
        font-size: 1.5rem;
    }
}
