﻿:root {
    --purple: #6f42c1;
    --purple-dark: #5b32a3;
    --bg-light: #f6f7fb;
    --border-light: #e8e9ef;
    --text-muted: #6b7280;
}

/* Base */
body {
    background: var(--bg-light);
}

/* Page */
.identity-page {
    min-height: 100vh;
    padding: 2rem 1rem;
}

.identity-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
}

.identity-sidebar {
    width: 240px;
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 0 0 1px var(--border-light);
}

/* Sidebar nav */
.identity-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.identity-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: .25rem;
    transition: background .15s ease, color .15s ease;
}

    .identity-nav-link i {
        font-size: .95rem;
    }

    .identity-nav-link:hover {
        background: rgba(111,66,193,.08);
    }

    .identity-nav-link.active {
        background: var(--purple);
        color: #fff;
    }

/* Card */
.identity-card {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 0 0 1px var(--border-light);
    animation: fadeUp .25s ease-out;
}

/* Header */
.identity-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.identity-header p {
    margin-top: .25rem;
    color: var(--text-muted);
    font-size: .9rem;
}

.identity-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

.identity-header-card {
    max-width: 1100px;
    margin: 0 auto 1.25rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 0 0 1px var(--border-light);
}

    .identity-header-card h1 {
        margin: 0;
        font-size: 1.6rem;
    }

    .identity-header-card p {
        margin-top: .35rem;
        color: var(--text-muted);
        font-size: .9rem;
    }
/* Forms */
.identity-form {
    max-width: 420px;
}

.form-group {
    margin-bottom: 1.25rem;
}

    .form-group label {
        display: block;
        font-size: .85rem;
        font-weight: 600;
        margin-bottom: .25rem;
    }

.identity-input {
    width: 100%;
    padding: .55rem .65rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: .9rem;
}

    .identity-input:disabled {
        background: #f1f2f6;
        color: #6b7280;
    }

    .identity-input:focus {
        outline: none;
        border-color: var(--purple);
        box-shadow: 0 0 0 2px rgba(111,66,193,.15);
    }

.identity-input-readonly {
    display: flex;
    align-items: center;
    background: #f1f2f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.identity-hint {
    font-size: .75rem;
    color: var(--text-muted);
}

/* Buttons */
.identity-btn-primary {
    margin-top: 1rem;
    background: var(--purple);
    color: #fff;
    border: none;
    padding: .6rem 1.4rem;
    border-radius: 8px;
    font-size: .9rem;
    cursor: pointer;
}

    .identity-btn-primary:hover {
        background: var(--purple-dark);
    }

.identity-btn-danger {
    margin-top: 1rem;
    width: 100%;
    background: #dc2626;
    color: #fff;
    border: none;
    padding: .65rem 1.4rem;
    border-radius: 8px;
    font-size: .9rem;
    cursor: pointer;
}

    .identity-btn-danger:hover {
        background: #b91c1c;
    }

.identity-btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    padding: .65rem 1.4rem;
    border-radius: 8px;
    font-size: .9rem;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
}

    .identity-btn-outline:hover {
        background: #f3f4f6;
    }

.identity-btn-primary:disabled,
.identity-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Links */
.identity-link-button {
    margin-top: .35rem;
    background: none;
    border: none;
    padding: 0;
    font-size: .85rem;
    color: var(--purple);
    cursor: pointer;
}

    .identity-link-button:hover {
        text-decoration: underline;
    }

/* 2FA */
.twofa-box {
    border: 1px dashed #e5e7eb;
    border-radius: 14px;
    padding: 3rem;
    text-align: center;
}

.twofa-icon {
    background: #f3f4f6;
    padding: 1.2rem;
    border-radius: 999px;
    display: inline-flex;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .identity-container {
        flex-direction: column;
    }

    .identity-sidebar {
        width: 100%;
    }

    .identity-nav-link {
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
