/* ========================================
   MNC-GRADE VCool Blue THEME
   Professional corporate authentication styles
   ======================================== */

/* Hide browser-native password reveal buttons (Edge/Chrome) so they don't overlap the custom eye icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
}

/* Global override for auth pages */
html,
body {
    background: linear-gradient(135deg, #0176d3 0%, #014486 100%) !important;
}

body.auth-body {
    background: linear-gradient(135deg, #0176d3 0%, #014486 100%) !important;
    color: var(--text-primary);
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.auth-article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0176d3 0%, #014486 100%);
    z-index: 0;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.auth-card {
    background: var(--surface-white);
    width: 100%;
    max-width: 420px;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: authFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    color: var(--brand-primary);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    outline: none;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--brand-primary-lighter);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(1, 118, 211, 0.1);
    background: var(--surface-white);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 118, 211, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.alert {
    padding: 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-error {
    background-color: var(--status-error-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: var(--status-success-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Enterprise Profile Styles */
.profile-page {
    background-color: var(--surface-light);
    min-height: calc(100vh - 64px);
    padding-bottom: 60px;
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #014486 100%);
    position: relative;
    border-radius: 0;
}

.profile-header-container {
    max-width: 1140px;
    margin: -60px auto 0;
    padding: 0 32px;
    display: flex;
    align-items: flex-end;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.profile-avatar-large {
    width: 140px;
    height: 140px;
    background-color: var(--brand-primary);
    border: 6px solid var(--surface-white);
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-name-section {
    padding-bottom: 8px;
    flex: 1;
    margin-bottom: -18px;
    /* Lowering by approx 0.5cm */
}

.profile-full-name {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1b;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.profile-email-text {
    color: #475569;
    font-size: 16px;
    font-weight: 500;
}

.profile-org-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.btn-profile-edit {
    padding: 10px 24px;
    background-color: var(--surface-white);
    color: var(--brand-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-profile-edit:hover {
    background-color: var(--brand-primary-lighter);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.profile-content-grid {
    max-width: 1140px;
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    padding: 0 32px;
}

.info-card {
    background: var(--surface-white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    margin-bottom: 32px;
}

.info-card-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-item .bi {
    font-size: 20px;
    color: var(--brand-primary);
    opacity: 0.7;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px;
}

.detail-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #1a1a1b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-group p {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.badge-active {
    background-color: var(--status-success-bg);
    color: #065f46;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--status-success);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
    .profile-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: -30px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        max-width: 100%;
        padding: 24px;
    }
    .profile-content-grid {
        padding: 0 1rem;
        margin-top: 24px;
    }
}