/* Styles pour le formulaire de demande d'accès temporaire */
.temp-access-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.temp-access-form h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    font-size: 1.5rem;
}

.temp-access-form .form-group {
    margin-bottom: 1.5rem;
}

.temp-access-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.temp-access-form input[type="text"],
.temp-access-form input[type="email"],
.temp-access-form input[type="tel"],
.temp-access-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: white !important;
}

.temp-access-form input:focus,
.temp-access-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.temp-access-form input.error,
.temp-access-form textarea.error {
    border-color: #dc3545;
}

.temp-access-form textarea {
    resize: vertical;
    min-height: 100px;
}

.temp-access-form input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.temp-access-form .form-actions {
    text-align: center;
    margin-top: 2rem;
}

.temp-access-submit-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 180px;
}

.temp-access-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.temp-access-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.temp-access-submit-btn .button-loading {
    display: inline-flex;
    align-items: center;
}

.temp-access-submit-btn .button-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.temp-access-messages {
    margin-bottom: 1.5rem;
    padding: 0;
    border-radius: 4px;
}

.temp-access-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
}

.temp-access-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
}

.temp-access-messages ul {
    margin: 0.5rem 0 0;
    padding-left: 1.5rem;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Statut des demandes */
.temp-access-status-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.temp-access-status-form h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.status-results {
    margin-top: 2rem;
}

.status-results .loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.requests-list {
    space-y: 1rem;
}

.request-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
}

.request-item.status-pending {
    border-left: 4px solid #ffc107;
    background: #fff9c4;
}

.request-item.status-approved {
    border-left: 4px solid #28a745;
    background: #d4edda;
}

.request-item.status-rejected {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
}

.request-item.status-expired {
    border-left: 4px solid #6c757d;
    background: #e2e3e5;
}

.request-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.request-item.status-pending .status-badge {
    background: #ffc107;
    color: #856404;
}

.request-item.status-approved .status-badge {
    background: #28a745;
    color: white;
}

.request-item.status-rejected .status-badge {
    background: #dc3545;
    color: white;
}

.request-item.status-expired .status-badge {
    background: #6c757d;
    color: white;
}

.request-details p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.no-requests {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .temp-access-form-container,
    .temp-access-status-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .request-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .temp-access-submit-btn {
        width: 100%;
    }
}

/* Animation d'apparition */
.temp-access-form-container,
.temp-access-status-container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* assets/frontend.css */
.temp-access-gate {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.temp-access-gate h3 {
    margin-top: 0;
    color: #333;
}

.temp-access-form {
    margin-top: 1.5em;
}

.temp-access-form .form-group {
    margin-bottom: 1.5em;
}

.temp-access-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.temp-access-form input[type="text"],
.temp-access-form input[type="email"],
.temp-access-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.temp-access-submit-btn {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.temp-access-submit-btn:hover {
    background-color: #135e96;
}

.temp-access-messages {
    margin-top: 1.5em;
    padding: 1em;
    border-radius: 4px;
}

.temp-access-messages.success {
    background-color: #f0f9eb;
    border: 1px solid #67c23a;
    color: #67c23a;
}

.temp-access-messages.error {
    background-color: #fef0f0;
    border: 1px solid #f56c6c;
    color: #f56c6c;
}

.alternative-option {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
    color: #004666 !important;
}
.alternative-option a{
    color: #004666 !important;
    font-weight: bold;
    text-decoration: underline;
}
.temp-access-granted {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: #f0f9eb;
    border: 1px solid #67c23a;
    border-radius: 8px;
    text-align: center;
}