/* ===================================
   Security Desk - Authentication Styles
   로그인/회원가입 페이지 전용 스타일
   =================================== */

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.auth-header p {
    color: var(--text-sub);
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #0F172A;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input::placeholder {
    color: #64748B;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #FCA5A5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.success-message {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Footer Links */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-sub);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-sub);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Social Login Buttons (for future) */
.btn-social {
    width: 100%;
    padding: 12px;
    background: #0F172A;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-social:hover {
    background: var(--border);
    border-color: var(--primary);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Consent Checkboxes */
.consent-group {
    margin-top: 10px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #0F172A;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.consent-item:last-child {
    margin-bottom: 0;
}

.consent-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.consent-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    flex: 1;
}

.consent-title {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.consent-desc {
    color: var(--text-sub);
    font-size: 0.85rem;
    line-height: 1.4;
}

.consent-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 8px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .auth-box {
        padding: 30px 24px;
    }

    .auth-header h1 {
        font-size: 1.6rem;
    }
}
