/* ==========================================================================
   HR Management - Modern Executive Login Stylesheet
   ========================================================================== */

:root {
    --login-primary: #0d9488;
    --login-primary-dark: #0f766e;
    --login-primary-light: #ccfbf1;
    --login-bg-from: #0f172a;
    --login-bg-to: #1e293b;
    --login-card-bg: #ffffff;
    --login-text-dark: #0f172a;
    --login-text-muted: #64748b;
    --login-border: #e2e8f0;
    --login-danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at 20% 20%, #134e4a 0%, #0f172a 60%, #020617 100%);
    color: var(--login-text-dark);
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

/* Ambient glow blobs */
.login-body::before,
.login-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    pointer-events: none;
}
.login-body::before {
    width: 420px;
    height: 420px;
    background: #0d9488;
    top: -80px;
    right: -80px;
}
.login-body::after {
    width: 360px;
    height: 360px;
    background: #0284c7;
    bottom: -80px;
    left: -80px;
}

/* Container */
.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    animation: loginFadeIn 0.35s ease-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Brand header above card */
.login-brand {
    text-align: center;
    margin-bottom: 24px;
}
.login-brand__badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -4px rgba(20, 184, 166, 0.4);
    margin-bottom: 12px;
}
.login-brand__badge svg {
    width: 30px;
    height: 30px;
}
.login-brand__title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}
.login-brand__subtitle {
    font-size: 13px;
    color: #94a3b8;
}

/* Card */
.login-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 34px 32px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.login-card__heading {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.login-card__subheading {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 22px;
}

/* Alert */
.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: shake 0.3s ease-in-out;
}
.login-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.login-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}
.login-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

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

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-input-icon svg {
    width: 18px;
    height: 18px;
}

.login-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all 0.15s ease;
}
.login-input:focus {
    background: #ffffff;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.login-input::placeholder {
    color: #94a3b8;
}

.login-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.login-toggle-pass:hover {
    color: #334155;
}
.login-toggle-pass svg {
    width: 18px;
    height: 18px;
}

/* Options row */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #64748b;
    margin-top: -2px;
}
.login-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.login-checkbox-label input {
    accent-color: #0d9488;
    cursor: pointer;
    width: 15px;
    height: 15px;
}

/* Submit button */
.login-submit-btn {
    width: 100%;
    padding: 13px 20px;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    transition: all 0.2s ease;
}
.login-submit-btn:hover {
    background: linear-gradient(135deg, #0f766e 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
    transform: translateY(-1px);
}
.login-submit-btn:active {
    transform: translateY(0);
}
.login-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Footer note */
.login-footer-note {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #94a3b8;
}
