/* ===================================
   HostoMatic Identity Pages Styles
   =================================== */

:root {
    --hostomatic-primary: #ff8c00;
    --hostomatic-primary-dark: #e67e00;
    --hostomatic-primary-light: #ffa940;
    --hostomatic-secondary: #6c757d;
    --hostomatic-success: #198754;
    --hostomatic-gradient-start: #ff8c00;
    --hostomatic-gradient-end: #ff6b35;
    --hostomatic-gray-dark: #343a40;
    --hostomatic-gray: #6c757d;
    --hostomatic-gray-light: #f8f9fa;
    --hostomatic-card-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Background con gradiente */
.identity-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--hostomatic-gray-dark) 0%, #495057 50%, var(--hostomatic-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container centrale */
.identity-container {
    width: 100%;
    max-width: 450px;
}

/* Card principale */
.identity-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--hostomatic-card-shadow);
    overflow: hidden;
}

/* Header della card con logo */
.identity-header {
    background: linear-gradient(135deg, var(--hostomatic-gradient-start) 0%, var(--hostomatic-gradient-end) 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.identity-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.identity-logo i {
    font-size: 40px;
    color: var(--hostomatic-primary);
}

.identity-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.identity-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Body della card */
.identity-body {
    padding: 30px;
    background: #ffffff;
}

/* Form elements */
.identity-form .form-floating {
    margin-bottom: 20px;
}

.identity-form .form-floating > .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.identity-form .form-floating > .form-control:focus {
    border-color: var(--hostomatic-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.identity-form .form-floating > label {
    color: var(--hostomatic-gray);
}

.identity-form .form-floating > .form-control:focus ~ label {
    color: var(--hostomatic-primary);
}

/* Checkbox personalizzato */
.identity-form .form-check {
    margin-bottom: 20px;
}

.identity-form .form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #dee2e6;
}

.identity-form .form-check-input:checked {
    background-color: var(--hostomatic-primary);
    border-color: var(--hostomatic-primary);
}

.identity-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.identity-form .form-check-label {
    margin-left: 8px;
    color: var(--hostomatic-gray);
}

/* Pulsante principale */
.identity-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--hostomatic-gradient-start) 0%, var(--hostomatic-gradient-end) 100%);
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.identity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
    background: linear-gradient(135deg, var(--hostomatic-gradient-end) 0%, var(--hostomatic-gradient-start) 100%);
    color: white;
}

.identity-btn:active {
    transform: translateY(0);
}

/* Link section */
.identity-links {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.identity-links a {
    display: block;
    color: var(--hostomatic-primary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.identity-links a:hover {
    color: var(--hostomatic-primary-dark);
    text-decoration: underline;
}

.identity-links a:last-child {
    margin-bottom: 0;
}

/* Footer */
.identity-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.identity-footer a {
    color: var(--hostomatic-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.identity-footer a:hover {
    color: white;
}

/* Alert/Validation messages */
.identity-form .text-danger {
    font-size: 0.8rem;
    margin-top: 5px;
}

.identity-form .alert {
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Status message */
.identity-status {
    margin-bottom: 20px;
}

.identity-status .alert {
    border-radius: 10px;
    border: none;
}

.identity-status .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.identity-status .alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Responsive */
@media (max-width: 576px) {
    .identity-container {
        max-width: 100%;
    }
    
    .identity-body {
        padding: 20px;
    }
    
    .identity-header {
        padding: 25px 15px;
    }
    
    .identity-logo {
        width: 70px;
        height: 70px;
    }
    
    .identity-logo i {
        font-size: 35px;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.identity-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Divider con testo */
.identity-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--hostomatic-gray);
    font-size: 0.85rem;
}

.identity-divider::before,
.identity-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.identity-divider span {
    padding: 0 15px;
}

/* Icone nelle card di stato */
.identity-body .text-success {
    color: #198754 !important;
}

.identity-body .text-danger {
    color: #dc3545 !important;
}

.identity-body .text-warning {
    color: var(--hostomatic-primary) !important;
}

.identity-body .text-primary {
    color: var(--hostomatic-primary) !important;
}

/* Alert personalizzati */
.identity-body .alert-info {
    background-color: #fff3e0;
    border-color: var(--hostomatic-primary-light);
    color: var(--hostomatic-gray-dark);
}

.identity-body .alert-warning {
    background-color: #fff8e1;
    border-color: #ffca28;
    color: var(--hostomatic-gray-dark);
}
