/* Portal-specific styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px 0;
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

.dashboard-content {
    background-color: #1A1E2D99;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0px 0px 90px rgba(0, 0, 0, 0.3);
}

.dashboard-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo img {
    height: 20px;
    width: auto;
    opacity: 0.8;
}

.auth-title {
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #cccccc;
    font-size: 1em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
}

.dashboard-title {
    color: #ffffff;
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    color: #cccccc;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.error-message {
    color: #ff2c41;
    font-size: 0.9em;
    text-align: center;
    margin-top: 10px;
}

.logout-btn {
    background-color: #ff2c41;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #e02435;
}

/* App Info Section */
.app-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #131523;
    border-radius: 15px;
    border: 1px solid #333333;
}

.version-info h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.version-details {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.version-number {
    color: #59DD4B;
    font-size: 1.2em;
    font-weight: 700;
    white-space: nowrap;
}

/* Download Section */
.download-section {
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #59DD4B, #4CAF50);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(89, 221, 75, 0.3);
    line-height: 1;
}

.download-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 221, 75, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    font-size: 1.2em;
}

/* Changelog Section */
.changelog-section {
    padding: 30px;
    background-color: #131523;
    border-radius: 15px;
    border: 1px solid #333333;
}

.changelog-section h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.changelog-content {
    color: #cccccc;
    font-size: 0.9em;
    line-height: 1.6;
}

.changelog-content ul {
    margin: 0;
    padding-left: 20px;
}

.changelog-content li {
    margin-bottom: 8px;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333333;
    border-top: 3px solid #59DD4B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-spinner p {
    color: #ffffff;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 20px;
    }
    
    .app-info {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .auth-title,
    .dashboard-title {
        font-size: 2em;
    }
}

/* Hide/Show utilities */
.hide {
    display: none !important;
}

.show {
    display: block !important;
}
