﻿/* QuickClinic Staff Login Styles - Exact match with Student Login */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0F3D57 0%, #179C8E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    min-height: 650px;
    display: flex;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Side Panel */
.side-panel {
    flex: 1;
    background: linear-gradient(135deg, #179C8E 0%, #4FC4D3 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .side-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
        pointer-events: none;
    }

.logo {
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    padding: 15px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .logo:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 1);
    }

    .logo:active {
        transform: scale(1.05) rotate(0deg);
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: brightness(0) invert(1);
}

.clinic-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.medical-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}


    .floating-icon:nth-child(1) {
        top: 15%;
        left: 8%;
        animation-delay: 0s;
    }

    .floating-icon:nth-child(2) {
        top: 35%;
        right: 12%;
        animation-delay: 0.5s;
    }

    .floating-icon:nth-child(3) {
        top: 70%;
        left: 15%;
        animation-delay: 1s;
    }

    .floating-icon:nth-child(4) {
        bottom: 15%;
        right: 8%;
        animation-delay: 1.5s;
    }

    .floating-icon:nth-child(5) {
        top: 50%;
        left: 35%;
        animation-delay: 2s;
    }

    .floating-icon:nth-child(6) {
        top: 25%;
        right: 30%;
        animation-delay: 2.5s;
    }

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

    50% {
        transform: translateY(-10px);
    }
}



/* Form Panel */
.form-panel {
    flex: 1.2;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    max-height: 100%;
}

.form-container {
    width: 100%;
    max-width: 450px;
}

.form-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.auth-form {
    width: 100%;
}

/* === UPDATED INPUT STYLES === */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .input-group .form-control {
        width: 100%;
        padding: 14px 45px 14px 15px;
        border: 2px solid #e1e5e9;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: #f8f9fa;
        font-family: inherit;
        line-height: 1.5;
    }

        .input-group .form-control:focus {
            outline: none;
            border-color: #179C8E;
            background: white;
            box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
        }

        .input-group .form-control::placeholder {
            color: #a0a0a0;
            opacity: 1;
        }

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%); /* Centers vertically */
    font-size: 1.1rem;
    color: #666;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; /* Add fixed width */
    height: 20px; /* Add fixed height */
}

.toggle-password {
    position: absolute;
    right: 15px; /* Changed from 40px to 15px */
    top: 50%;
    transform: translateY(-50%); /* Centers vertically */
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 2;
    background: none;
    border: none;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; /* Add fixed width */
    height: 20px; /* Add fixed height */
}

    .toggle-password:hover {
        opacity: 1;
    }

.input-group.error .form-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-group.error .input-icon {
    color: #dc3545;
}

.input-group.success .form-control {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.input-group.success .input-icon {
    color: #28a745;
}

.input-group .form-control:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
    cursor: not-allowed;
}
/* === END UPDATED INPUT STYLES === */

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

    .checkbox-container input {
        display: none;
    }

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #179C8E;
    border-color: #179C8E;
}

    .checkbox-container input:checked + .checkmark::after {
        content: '✓';
        position: absolute;
        color: white;
        font-size: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.forgot-password {
    color: #179C8E;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #4FC4D3;
        text-decoration: underline;
    }

/* Button Styles */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #179C8E 0%, #4FC4D3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Success/Error Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Login */
.back-to-login {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 0.95rem;
}

.back-link {
    color: #179C8E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .back-link:hover {
        color: #4FC4D3;
        text-decoration: underline;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 450px;
        min-height: auto;
    }

    .side-panel {
        padding: 30px 20px;
        min-height: 250px;
    }

    .clinic-name {
        font-size: 2rem;
    }

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

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .medical-icons {
        display: none;
    }

    .input-group .form-control {
        padding: 12px 40px 12px 12px;
    }

    .toggle-password {
        right: 35px;
    }
}

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

    .container {
        border-radius: 15px;
    }

    .form-panel {
        padding: 25px 20px;
    }

    .side-panel {
        padding: 25px 20px;
    }

    .clinic-name {
        font-size: 1.8rem;
    }

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

    .input-group .form-control {
        padding: 10px 35px 10px 10px;
        font-size: 16px;
    }

    .toggle-password {
        right: 30px;
    }

    .input-icon {
        right: 12px;
    }
}

/* Shake animation for invalid fields */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.input-group.shake .form-control {
    animation: shake 0.5s ease-in-out;
}
