﻿.identity-container {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.identity-card {
    background: rgba(255, 255, 255, 0.95);
    margin: 0 auto;
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.identity-title {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    text-align: center;
}

.identity-subtitle {
    color: #4b5563;
    margin: 0 0 2rem 0;
    text-align: center;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-label {
    display: block;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(to right, #2c2c2c, #4a4a4a);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    background: white;
    color: #4b5563;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.identity-links {
    margin-top: 1.5rem;
    text-align: center;
}

.identity-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.identity-links a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.external-auth {
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.external-auth-title {
    text-align: center;
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.external-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.btn-external {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #1f2937; /* Dark gray text color */
    text-align: center;
}

.btn-external:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-external img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .btn-external {
        font-size: 0.875rem;
        padding: 0.625rem;
    }

    .btn-external img {
        width: 20px;
        height: 20px;
    }
}

/* Profile management specific styles */

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    background: white;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox:hover {
    border-color: #3b82f6;
}

.checkbox-label {
    color: #4a5568;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

/* Profile Header Styles */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-picture-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-upload {
    margin-bottom: 1.5rem;
}

.profile-upload input[type="file"] {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-picture,
    .profile-picture-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
}

/* Password input group */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.password-toggle:hover {
    color: #374151;
}

/* Status Messages */
.status-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.status-message.success {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #15803d;
}

.status-message.error {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
}

/* Two Factor Authentication Specific */
.authenticator-key {
    font-family: monospace;
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    word-break: break-all;
}

.qr-code {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    margin: 1rem 0;
}

/* External Logins */
.external-logins-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.external-login-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.external-login-icon {
    width: 24px;
    height: 24px;
}

.external-login-name {
    font-weight: 500;
    color: #374151;
    padding-left: 10px;
}

.external-login-info {
    display: flex;
    align-items: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Personal Data */
.personal-data-info {
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.personal-data-info p {
    color: #374151;
}

.danger-zone {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #fee2e2;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Code Verification Input */
.verification-code-input {
    letter-spacing: 0.5em;
    text-align: center;
    font-family: monospace;
    font-size: 1.2rem;
}

.lockout-details {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.lockout-details p {
    margin: 10px 0;
    font-size: 0.95rem;
}

.lockout-form {
    margin: 30px 0;
}

.lockout-help {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 15px;
    font-size: 0.875rem;
    color: #4a5568;
}

.lockout-help a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.lockout-help a:hover {
    color: #2563eb;
}

@media (max-width: 640px) {
    .lockout-container {
        padding: 20px;
    }

    .lockout-details, .lockout-help {
        padding: 15px;
    }
}