/* Identity Pages - Modern Card Layout */

/* Container: full viewport centering with gradient background */
.identity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 24px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #F3E8FF 100%);
    margin: -16px;
}

/* Card */
.identity-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: identityFadeIn 0.5s ease-out;
}

/* Gradient header strip */
.identity-header {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    padding: 32px 24px;
    text-align: center;
    color: #FFFFFF;
}

.identity-header i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.95;
}

.identity-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
}

.identity-header p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 400;
}

/* Body / form area */
.identity-body {
    padding: 32px 28px;
}

/* Form controls override */
.identity-body .form-floating {
    margin-bottom: 20px;
}

.identity-body .form-control {
    border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.identity-body .form-control:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.identity-body .form-floating > label {
    font-weight: 500;
    color: #64748B;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Checkbox styling */
.identity-body .form-check-input:checked {
    background-color: #6366F1;
    border-color: #6366F1;
}

.identity-body .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    border-color: #6366F1;
}

/* Identity button (gradient indigo) */
.btn-identity {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-identity:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-identity:active {
    transform: translateY(0);
}

/* Links section */
.identity-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
    text-align: center;
}

.identity-links a {
    color: #6366F1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.identity-links a:hover {
    color: #4F46E5;
    text-decoration: underline;
}

.identity-links p {
    margin: 8px 0;
}

/* Validation error styling */
.identity-body .text-danger {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Centered icon card (Logout / AccessDenied) */
.identity-icon-section {
    padding: 40px 24px 24px;
    text-align: center;
}

.identity-icon-section i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.identity-icon-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1E293B;
}

.identity-icon-section p {
    color: #64748B;
    font-size: 0.95rem;
    margin: 0 0 24px;
}

/* Animation */
@keyframes identityFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
