/* Auth Button and Dropdown Styles - Paper Cutout Theme */

/* Auth button now uses .header-btn from layout.css */
/* This file handles logged-in state and dropdown styling */

.auth-button.logged-in {
    background: #E8F5E9 !important;
    border-color: #4CAF50 !important;
    color: #2E7D32 !important;
}

.auth-button.logged-in:hover {
    background: #C8E6C9 !important;
}

.auth-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    left: auto;
    background: var(--paper-card, #FFFFFF);
    border: 2px solid var(--paper-outline, #2D3436);
    border-radius: var(--paper-border-radius-sm, 8px);
    box-shadow: 3px 3px 0 var(--paper-shadow, #b0b0b0);
    min-width: 200px;
    z-index: 10003;
    overflow: hidden;
}

.auth-dropdown.hidden {
    display: none;
}

.auth-dropdown-content {
    padding: 12px;
}

.auth-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}

.auth-user-info i {
    font-size: 24px;
    color: #6366f1;
}

.auth-user-info span {
    font-size: 14px;
    color: #334155;
    word-break: break-all;
}

.auth-sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #4CAF50;
    border-radius: var(--paper-border-radius-sm, 8px);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.auth-sync-status i {
    font-size: 14px;
}

.auth-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--paper-outline, #2D3436);
    border-radius: var(--paper-border-radius-sm, 8px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 8px;
    background: var(--paper-card, #FFFFFF);
    color: var(--paper-text, #2D3436);
    box-shadow: 2px 2px 0 var(--paper-shadow, #b0b0b0);
}

.auth-dropdown-btn:last-child {
    margin-bottom: 0;
}

.auth-dropdown-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--paper-shadow, #b0b0b0);
}

.auth-dropdown-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--paper-shadow, #b0b0b0);
}

.auth-dropdown-btn.primary {
    background: var(--paper-primary, #E17055);
    color: white;
    border-color: var(--paper-outline, #2D3436);
}

.auth-dropdown-btn.primary:hover {
    background: #D35D47;
}

.auth-dropdown-btn.sign-out {
    background: #FFEBEE;
    color: #C62828;
    border-color: #C62828;
}

.auth-dropdown-btn.sign-out:hover {
    background: #FFCDD2;
}

.auth-dropdown-info {
    font-size: 13px;
    color: var(--paper-text, #2D3436);
    text-align: center;
    margin-bottom: 12px;
    opacity: 0.7;
}

/* Auth Modal Styles */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-modal-content h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #1e293b;
    text-align: center;
}

.auth-modal-content .close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-modal-content .close-modal:hover {
    background: #f1f5f9;
    color: #475569;
}

.auth-modal .form-group {
    margin-bottom: 16px;
}

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

.auth-modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-modal .form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.auth-link {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

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

.auth-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
}

.auth-success {
    background: #ecfdf5;
    color: #059669;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #a7f3d0;
}

.auth-error.hidden,
.auth-success.hidden {
    display: none;
}

.auth-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.auth-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.auth-info i {
    color: #6366f1;
}

/* Menu container positioning fix for auth button */
#menu-container {
    position: relative;
    display: flex;
    gap: 10px;
}
