/* ============================================================
   AREA RISERVATA SOCI - FRONTEND STYLES
   ============================================================ */

/* Login Form */
.ars-login-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.ars-login-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ars-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.ars-login-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.ars-login-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #1a1a2e;
}

.ars-login-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.ars-login-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.ars-form-group {
    margin-bottom: 18px;
}

.ars-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.ars-login-form input[type="text"],
.ars-login-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ars-login-form input[type="text"]:focus,
.ars-login-form input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ars-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.ars-login-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ars-login-btn:hover {
    background: #1d4ed8;
}

/* Restricted Message */
.ars-restricted {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.ars-restricted-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.ars-restricted h2 {
    color: #1a1a2e;
    font-size: 22px;
    margin-bottom: 10px;
}

.ars-restricted p {
    color: #666;
    font-size: 15px;
}

/* Area Riservata Main */
.ars-area-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.ars-area-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.ars-area-welcome h2 {
    margin: 0 0 5px;
    font-size: 26px;
    color: #1a1a2e;
}

.ars-area-welcome p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.ars-area-welcome a {
    color: #dc2626;
    text-decoration: none;
}

.ars-area-welcome a:hover {
    text-decoration: underline;
}

/* Breadcrumb */
.ars-breadcrumb {
    background: #f9fafb;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ars-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.ars-breadcrumb a:hover {
    text-decoration: underline;
}

.ars-sep {
    color: #9ca3af;
    margin: 0 4px;
}

/* Directory Grid */
.ars-directories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.ars-directory-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.ars-directory-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.ars-dir-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.ars-dir-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #1a1a2e;
}

.ars-dir-desc {
    margin: 0 0 4px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.ars-dir-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* Documents List */
.ars-documents-list {
    margin-top: 10px;
}

.ars-documents-list h3 {
    font-size: 18px;
    margin: 0 0 15px;
    color: #1a1a2e;
}

.ars-doc-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ars-doc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ars-doc-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.ars-doc-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.ars-doc-info {
    flex: 1;
    min-width: 0;
}

.ars-doc-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #1a1a2e;
}

.ars-doc-info p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.ars-doc-meta {
    font-size: 12px;
    color: #9ca3af;
}

.ars-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #2563eb;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ars-download-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}

/* Empty State */
.ars-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.ars-empty-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.ars-empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ars-login-box {
        padding: 25px;
    }

    .ars-directories-grid {
        grid-template-columns: 1fr;
    }

    .ars-doc-card {
        flex-wrap: wrap;
    }

    .ars-download-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}
