/* Modern Login Page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(2, 132, 199, 0.45) 100%);
    z-index: 0;
}

.login-page__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.login-page__brand {
    text-align: center;
    margin-bottom: 24px;
}

.login-page__brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
    overflow: hidden;
}

.login-page__brand-logo img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.login-page__brand-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-card__heading {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.login-card__subheading {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px;
    line-height: 1.5;
}

.login-card .form-group {
    margin-bottom: 18px;
}

.login-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.login-card .form-control {
    height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    padding: 10px 14px;
    box-shadow: none;
    transition: border-color 0.15s;
}

.login-card .form-control:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.login-card__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.login-card__remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.login-card__remember input {
    margin: 0;
}

.login-card__forgot {
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: none;
}

.login-card__forgot:hover {
    text-decoration: underline;
    color: #0284c7;
}

.login-card__submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.login-card__submit:hover {
    opacity: 0.92;
    color: #fff;
}

.login-card__register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #0ea5e9;
    background: #fff;
    color: #0284c7;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.login-card__register:hover,
.login-card__register:focus {
    background: #eff6ff;
    color: #0369a1;
    text-decoration: none;
}

.login-card__back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.login-card__back:hover,
.login-card__back:focus {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #0369a1;
    text-decoration: none;
}

.login-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.login-alert--success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.login-alert--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.login-page__footer {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Modal */
.login-modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.login-modal .modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.login-modal .modal-title {
    font-weight: 600;
    color: #0f172a;
}

.login-modal .btn-success {
    background: #0ea5e9;
    border-color: #0ea5e9;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 22px 24px;
    }
}
