/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.login-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-scene .scene-bg {
    position: absolute;
    inset: 0;
}

.login-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
}

.login-header {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.back-btn:hover {
    color: #1a1a1a;
    transform: translateX(-5px);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.login-card-main {
    background: #fff;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

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

.login-icon-main {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.login-icon-main svg {
    width: 48px;
    height: 48px;
}

.login-card-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.login-card-header p {
    font-size: 0.9375rem;
    color: #666;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

.form-group input::placeholder {
    color: #999;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    color: #999;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #1a1a1a;
}

.toggle-password svg {
    width: 22px;
    height: 22px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-label input:checked + .checkmark {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

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

.forgot-link {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #1a1a1a;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-submit:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover svg {
    transform: translateX(5px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    font-size: 0.875rem;
    color: #999;
}

.login-alt {
    text-align: center;
}

.login-alt p {
    font-size: 0.9375rem;
    color: #666;
}

.login-alt a {
    color: #2563eb;
    font-weight: 600;
    transition: color 0.3s;
}

.login-alt a:hover {
    color: #1a1a1a;
}

.demo-credentials {
    margin-top: 25px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 12px;
    text-align: center;
}

.demo-credentials p {
    font-size: 0.8125rem;
    color: #666;
}

.demo-credentials strong {
    color: #1a1a1a;
}

/* Login Section on Main Page */
.login-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    padding: 100px 40px;
}

.login-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.login-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.login-card.patient:hover {
    border-color: #2563eb;
}

.login-card.doctor:hover {
    border-color: #10b981;
}

.login-icon {
    width: 100px;
    height: 100px;
    background: #f8f8f8;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all 0.3s;
}

.login-card:hover .login-icon {
    background: #1a1a1a;
}

.login-card:hover .login-icon svg {
    stroke: #fff;
}

.login-icon svg {
    width: 56px;
    height: 56px;
    transition: all 0.3s;
}

.login-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.login-card p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-login-full {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 100px;
    transition: all 0.3s;
}

.btn-login-full svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-login-full:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-login-full:hover svg {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .login-card-main {
        padding: 40px 30px;
    }
    
    .login-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .login-card {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 20px 15px;
    }
    
    .login-card-main {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .login-icon-main {
        width: 70px;
        height: 70px;
    }
    
    .login-card-header h1 {
        font-size: 1.5rem;
    }
}