/* ???????????????????????????????????????????????????????????
   IDENTITY PAGES - Stile Coerente con l'Applicazione
   ??????????????????????????????????????????????????????????? */

:root {
    --identity-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --identity-primary: #667eea;
    --identity-secondary: #764ba2;
    --identity-card-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.identity-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--identity-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.identity-container {
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.identity-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--identity-card-shadow);
    overflow: hidden;
}

.identity-header {
    background: var(--identity-gradient);
    color: #fff;
    padding: 35px 30px;
    text-align: center;
}

.identity-header i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.identity-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.identity-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.identity-body {
    padding: 35px 30px;
}

/* Form Styles */
.form-floating {
    margin-bottom: 18px;
    position: relative;
}

.form-floating input,
.form-floating select,
.form-floating textarea {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 45px 16px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 58px;
}

.form-floating input:focus,
.form-floating select:focus,
.form-floating textarea:focus {
    border-color: var(--identity-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-floating label {
    padding: 16px;
    font-size: 0.9rem;
    color: #666;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 10;
}

/* Checkbox */
.form-check {
    margin-bottom: 20px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--identity-primary);
    border-color: var(--identity-primary);
}

.form-check-label {
    margin-left: 8px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
}

/* Buttons */
.btn-identity-primary {
    width: 100%;
    background: var(--identity-gradient);
    border: none;
    color: #fff;
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-identity-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.btn-identity-primary:active {
    transform: translateY(0);
}

.btn-identity-secondary {
    width: 100%;
    background: transparent;
    border: 2px solid var(--identity-primary);
    color: var(--identity-primary);
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-identity-secondary:hover {
    background: var(--identity-primary);
    color: #fff;
}

/* Links */
.identity-links {
    margin-top: 20px;
    text-align: center;
}

.identity-links a {
    color: var(--identity-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px 0;
}

.identity-links a:hover {
    color: var(--identity-secondary);
    transform: translateX(3px);
}

/* Validation */
.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.validation-summary-errors {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary-errors li {
    color: #856404;
    font-size: 0.9rem;
}

/* Info Messages */
.identity-info {
    background: #e8f4fd;
    border: 1px solid #b6dff7;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: #004085;
}

.identity-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: #155724;
}

/* Responsive */
@media (max-width: 576px) {
    .identity-container {
        max-width: 100%;
    }

    .identity-header {
        padding: 28px 20px;
    }

    .identity-header h1 {
        font-size: 1.4rem;
    }

    .identity-header i {
        font-size: 2rem;
    }

    .identity-body {
        padding: 28px 20px;
    }

    .form-floating input,
    .form-floating select {
        min-height: 54px;
        font-size: 0.95rem;
    }

    .btn-identity-primary,
    .btn-identity-secondary {
        padding: 13px;
        font-size: 1rem;
    }
}

/* Lista elementi (per manage pages) */
.identity-list {
    list-style: none;
    padding: 0;
}

.identity-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.identity-list li:last-child {
    border-bottom: none;
}

.identity-list a {
    color: var(--identity-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.identity-list a:hover {
    color: var(--identity-secondary);
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
