/**
 * Authentication UI Styles
 * Modern, minimalistic design with dark theme support
 */

/* Base Auth Page - Dark Theme */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

/* Auth Card - Dark Theme */
.auth-card {
    background: #1e1e1e;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease-out;
    border: 1px solid #333;
}

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

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

.auth-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #e0e0e0;
}

.auth-header .subtitle {
    font-size: 1.1em;
    color: #b0b0b0;
    margin: 0;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #b0b0b0;
    font-size: 0.95em;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #404040;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #2a2a2a;
    color: #e0e0e0;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #333;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group input::placeholder {
    color: #666;
}

.form-hint {
    font-size: 0.85em;
    color: #888;
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: auto;
    margin: 0;
}

.form-checkbox label {
    margin: 0;
    font-weight: normal;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: -10px;
}

.strength-bar {
    height: 4px;
    background: #404040;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
}

.strength-fill.strength-weak {
    width: 33%;
    background: #f44336;
}

.strength-fill.strength-medium {
    width: 66%;
    background: #ff9800;
}

.strength-fill.strength-strong {
    width: 100%;
    background: #4caf50;
}

.strength-text {
    font-size: 0.85em;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-text {
    display: inline;
}

/* Error Message - Dark Theme */
.error-message {
    padding: 12px 16px;
    background: rgba(244, 67, 54, 0.1);
    color: #ef5350;
    border-radius: 8px;
    border-left: 4px solid #ef5350;
    font-size: 0.95em;
}

/* Auth Footer - Dark Theme */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: #888;
    font-size: 0.95em;
}

.auth-footer p {
    margin: 10px 0;
}

.auth-footer a {
    color: #8b9dff;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #a5b4ff;
}

.anonymous-option {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #404040;
}

/* Auth Info Panel - Dark Theme */
.auth-info {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.auth-info h2 {
    font-size: 1.8em;
    margin: 0 0 20px 0;
    color: #e0e0e0;
}

.auth-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.auth-info li {
    padding: 12px 0;
    color: #b0b0b0;
    font-size: 1.05em;
}

.feature-highlight {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.feature-highlight h3 {
    margin: 0 0 10px 0;
    color: #e0e0e0;
}

.feature-highlight p {
    margin: 0;
    color: #b0b0b0;
    line-height: 1.6;
}

/* Profile Widget Styles - Dark Theme */
.profile-widget {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 600;
}

.profile-info {
    flex: 1;
}

.profile-name {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: #e0e0e0;
}

.profile-meta {
    margin: 0;
    font-size: 0.85em;
    color: #b0b0b0;
}

.profile-edit-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.profile-edit-btn:hover {
    background: #2a2a2a;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-section h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #e0e0e0;
}

.profile-section.empty .empty-state {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-summary-list {
    display: grid;
    gap: 8px;
}

.profile-summary-item {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.9em;
    color: #c4c4c4;
}

.profile-summary-label {
    font-weight: 600;
    color: #9aa4b2;
}

.profile-summary-value {
    color: #e0e0e0;
}

.profile-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.profile-tag.occupation {
    background: #e3f2fd;
    color: #1976d2;
}

.profile-tag.interest {
    background: #f3e5f5;
    color: #7b1fa2;
}

.profile-tag.skill {
    background: #e8f5e9;
    color: #388e3c;
}

.profile-tag.more {
    background: #f5f5f5;
    color: #666;
}

.profile-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #404040;
    text-align: center;
}

.btn-text {
    background: none;
    border: none;
    color: #8b9dff;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95em;
}

.btn-text:hover {
    text-decoration: underline;
    color: #a5b4ff;
}

/* Loading Skeleton - Dark Theme */
.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-block {
    height: 60px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Dark Theme is now default - no overrides needed */

/* Responsive Design */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 2em;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-edit-btn {
        position: absolute;
        top: 0;
        right: 0;
    }
}
