/* Portal Specific Styles */

/* Auth Section (Login/Register) */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    background: linear-gradient(135deg, rgba(162, 166, 128, 0.05), rgba(26, 26, 26, 0.8));
    border: 1px solid rgba(162, 166, 128, 0.2);
    border-radius: 20px;
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-family: 'Anybody', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pearl);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1.1rem;
    color: var(--silver);
}

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

.auth-button {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    font-family: 'Anybody', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: var(--noir);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-error-message {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.5);
    border-radius: 10px;
    padding: 1rem;
    color: #ff6b6b;
    font-size: 0.95rem;
    text-align: center;
    display: none;
    margin-bottom: 1rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer p {
    color: var(--silver);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--pearl);
}

/* Portal Section */
.portal-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.portal-container {
    max-width: 1200px;
    width: 100%;
}

.portal-loading {
    text-align: center;
    padding: 4rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(162, 166, 128, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.portal-loading p {
    color: var(--silver);
    font-size: 1.1rem;
}

.portal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portal-title {
    font-family: 'Anybody', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--pearl);
    margin-bottom: 0.5rem;
}

.portal-title span {
    color: var(--accent);
}

.portal-subtitle {
    font-size: 1.2rem;
    color: var(--silver);
}

.portal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.portal-card {
    background: linear-gradient(135deg, rgba(162, 166, 128, 0.05), rgba(26, 26, 26, 0.8));
    border: 1px solid rgba(162, 166, 128, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

.portal-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(162, 166, 128, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.portal-card h3 {
    font-family: 'Anybody', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pearl);
    margin-bottom: 1rem;
}

.portal-card p {
    font-size: 1rem;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.portal-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.portal-button.secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.portal-button.secondary:hover {
    background: rgba(162, 166, 128, 0.1);
}

.portal-footer {
    text-align: center;
}

.logout-button {
    background: transparent;
    border: 1px solid rgba(162, 166, 128, 0.3);
    color: var(--silver);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    border-color: var(--accent);
    color: var(--pearl);
    background: rgba(162, 166, 128, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem;
    }

    .auth-title {
        font-size: 2rem;
    }

    .portal-cards {
        grid-template-columns: 1fr;
    }

    .portal-card {
        padding: 2rem;
    }
}
