/* ============================
   SIGN IN MODAL - BEAUTIFUL STYLES
   ============================ */

.signin-container {
    max-width: min(95vw, 440px);
    max-height: min(90vh, 680px);
}

.signin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: clamp(2rem, 5vh, 3rem);
    text-align: center;
    color: white;
    position: relative;
}

.signin-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.signin-emoji {
    display: block;
    font-size: clamp(3rem, 8vw, 4rem);
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.signin-header h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin: 0 0 0.5rem;
    color: white;
    position: relative;
}

.signin-header h2 #signInNicknameDisplay {
    color: #fbbf24;
    font-weight: 700;
}

.signin-header p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    opacity: 0.95;
    margin: 0;
}

.signin-body {
    padding: clamp(1.5rem, 4vw, 2rem);
   overflow: auto;
}

.signin-form {
    margin-bottom: 1.5rem;
}

.signin-form .input-group {
    margin-bottom: 1.5rem;
}

.signin-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.label-icon {
    font-size: 1.2rem;
}

.signin-input {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.signin-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.passcode-input-wrapper {
    position: relative;
}

.passcode-input {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    letter-spacing: 0.3em;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    padding-right: 4rem;
}

.passcode-format-hint {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.input-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: #6b7280;
    line-height: 1.4;
}

.signin-error-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: clamp(0.75rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.signin-error-box .error-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.signin-error-box .error-text {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: #dc2626;
    font-weight: 500;
}

.signin-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.signin-actions .btn {
    flex: 1;
    padding: clamp(0.9rem, 2.5vw, 1.1rem);
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-glow {
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.3);
}

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

.btn-icon {
    font-size: 1.2rem;
}

.signin-help {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.25rem);
    display: flex;
    gap: 1rem;
}

.help-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.help-content p {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
}

.help-content small {
    display: block;
    color: #6b7280;
    line-height: 1.5;
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
}
