/* =====================================================
   Sirius Login Page - EXACT Original Styles
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.back-to-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 100;
    font-size: 0.9rem;
}

.back-to-home:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.login-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
}

.logo {
    margin-bottom: 2.5rem;
}

.logo-symbol {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 1.5rem;
    font-weight: 600;
}

.logo h1 {
    color: #111827;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.logo p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #111827;
    font-family: ui-monospace, "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Courier New", monospace;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* 이메일 유효성 검사 상태 스타일 */
.form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input.success:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.email-error-message,
.field-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: left;
    display: none;
}

.login-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
    font-size: 0.875rem;
    display: none;
    text-align: left;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #bbf7d0;
    font-size: 0.875rem;
    display: none;
    text-align: left;
}

.auth-links {
    margin: 1rem 0;
    text-align: center;
}

.auth-links p {
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
}

/* 로그인 탭 스타일 */
.login-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 0.25rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.tab-btn.active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #374151;
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
    padding: 1rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.help-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.help-section h4 {
    color: #111827;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.help-section ol {
    margin: 1rem 0;
    padding-left: 1.25rem;
    color: #4b5563;
}

.help-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.help-section a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.help-section a:hover {
    text-decoration: underline;
}

.security-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    font-size: 0.875rem;
    color: #4b5563;
}

.security-note strong {
    color: #111827;
}

.success-state {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .logo-symbol {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .back-to-home {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}