/**
 * Authentication Screen Styles
 * Beautiful, modern login experience for Breakside
 */

.auth-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(225, 144, 73, 0.3));
}

.auth-logo h1 {
    color: #E19049;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.auth-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: #E19049;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(225, 144, 73, 0.15);
}

/* Buttons */
.auth-button {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-button.primary {
    background: linear-gradient(135deg, #E19049 0%, #d47c32 100%);
    color: #fff;
}

.auth-button.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #d47c32 0%, #c66e25 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 144, 73, 0.3);
}

.auth-button.primary:active:not(:disabled) {
    transform: translateY(0);
}

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

.google-button {
    background: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.google-button:hover:not(:disabled) {
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-button svg {
    width: 18px;
    height: 18px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link {
    background: none;
    border: none;
    color: #E19049;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #f0a060;
    text-decoration: underline;
}

.auth-link-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

/* Messages */
.auth-error,
.auth-success {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.auth-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
}

.auth-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #5fd97a;
}

/* Description text */
.auth-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Skip section */
.auth-skip {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.auth-link-subtle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.auth-link-subtle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-skip-note {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .auth-logo img {
        width: 60px;
        height: 60px;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
}

/* User menu (for logged-in state in header) */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E19049 0%, #d47c32 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #2a2a3e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
}

.user-email {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

