﻿/* QuickClinic Staff Forgot Password Styles - Matched with 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;
    overflow-x: hidden; /* Added to prevent horizontal scroll */
}

.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; /* Fixed: removed 'ic' typo */
}

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

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

/* Rest of your CSS remains exactly the same */
/* 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);
}

@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;
}


    .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;
    text-align: center;
}

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

.auth-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

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

    .input-group .form-control {
        width: 100%;
        padding: 12px 40px 12px 12px;
        border: 2px solid #e1e5e9;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }

        .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-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #666;
    pointer-events: none;
}

.input-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 10px;
}

.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);
    }
}

/* 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 {
        justify-content: center;
    }

    .medical-icons {
        display: none;
    }
}

@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;
    }
}
