/* Auth Overlay - Covers everything */
#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--padding-page);
    overflow-y: auto;
}

#auth-overlay.hidden {
    display: none;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

/* Override big-input for Auth to be smaller */
.auth-container .big-input {
    font-size: 24px;
    width: 100%;
    background: var(--color-surface);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 0;
    font-weight: 600;
}

.logo-large {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 25px -5px rgba(95, 160, 132, 0.4);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.auth-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* User Profile Setup */
.avatar-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.avatar-option {
    font-size: 24px;
    background: var(--color-surface);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-option.selected {
    border-color: var(--color-primary);
    background: rgba(95, 160, 132, 0.1);
}

/* Invite Link Box */
.invite-box {
    background: var(--color-surface);
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px dashed var(--color-border);
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
    color: var(--color-primary);
    position: relative;
    cursor: pointer;
}

.invite-box:active {
    opacity: 0.7;
}

/* iOS Install Guide */
#ios-install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 20px 20px calc(20px + var(--safe-bottom));
    z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#ios-install-prompt.visible {
    display: flex;
}

.ios-instructions {
    max-width: 400px;
}

.ios-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
}

.ios-title {
    font-weight: 600;
    font-size: 18px;
}

.ios-steps {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.ios-steps strong {
    color: var(--color-text);
}

.share-icon-inline {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin: 0 4px;
}

.ios-arrow {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--color-surface);
    animation: bounce 2s infinite;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(10px);}
    60% {transform: translateX(-50%) translateY(5px);}
}
