/* Authentication Pages Styles */

/* Auth page main wrapper */
.auth-page-main {
    padding-top: 10px;
    min-height: 100vh;
    background: #ffffff;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .auth-page-main {
        padding-top: 0 !important;
    }
}

/* Auth section */
.auth-section {
    padding: 60px 0;
}

@media (max-width: 767px) {
    .auth-section {
        padding: 40px 0;
    }
}

/* Auth content wrapper - 자연스러운 스타일 */
.auth-content-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

/* Title */
.auth-content-wrapper .title {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Social login wrapper */
.social-login-wrapper {
    margin-bottom: 35px;
}

.social-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Social login buttons */
.social-login-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-login-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Google button */
.google-btn {
    position: relative;
}

.google-btn:hover {
    border-color: #4285f4;
    background: #f8f9fa;
}

.google-btn svg {
    width: 24px;
    height: 24px;
}


/* Divider section */
.divider-section {
    display: flex;
    align-items: center;
    margin: 35px 0;
    position: relative;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider-text {
    padding: 0 20px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form styles */
.login-form-wrapper {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 1, 79, 0.1);
}

.form-control::placeholder {
    color: #999;
    opacity: 0.7;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.form-check-input:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-check-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.forgot-link:hover {
    color: var(--color-primary-alt);
}

.forgot-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.forgot-link:hover::after {
    width: 100%;
}

/* Submit button */
.tmp-btn.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.tmp-btn.btn-primary:hover {
    background: var(--color-primary-alt);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 1, 79, 0.3);
}

/* Register form specific */
.register-form-wrapper {
    margin-top: 20px;
}

/* Password hint text */
.form-hint,
.form-text {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 5px;
    font-weight: 400;
}

.text-muted {
    color: #888 !important;
}

/* Terms & Conditions checkbox */
.terms-check {
    margin-bottom: 25px;
}

.terms-check .form-check {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.terms-check .form-check-input {
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
}

.terms-check .form-check-label {
    font-size: 13px;
    line-height: 1.5;
    margin-left: 8px;
    display: block;
}

.terms-check .form-check-label a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.terms-check .form-check-label a:hover {
    text-decoration: none;
}

/* Auth link */
.auth-link {
    text-align: center;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.auth-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    position: relative;
}

.auth-link a:hover {
    color: var(--color-primary-alt);
}

.auth-link a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.auth-link a:hover::after {
    width: 100%;
}

/* Input error messages */
.mt-2 {
    margin-top: 6px;
}

.text-sm {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.text-red-600 {
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    animation: fadeInError 0.2s ease-out;
}

.text-red-600::before {
    content: "•";
    font-size: 14px;
    font-weight: bold;
    margin-right: 2px;
}

@keyframes fadeInError {
    0% { 
        opacity: 0;
        transform: translateY(-5px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error message list styling */
.space-y-1 {
    margin: 0;
    padding: 0;
    list-style: none;
}

.space-y-1 li {
    margin-bottom: 0;
}

/* Form input error state */
.form-group:has(.text-red-600) .form-control {
    border-color: #dc2626;
}

.form-group:has(.text-red-600) .form-control:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* Password requirements text */
.form-text {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* Animation for auth pages */
.auth-content-wrapper > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.social-login-wrapper {
    animation-delay: 0.1s;
}

.divider-section {
    animation-delay: 0.2s;
}

.login-form-wrapper {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth session status */
.mb-4 {
    margin-bottom: 1rem;
}

.font-medium {
    font-weight: 500;
}

.text-green-600 {
    color: var(--color-success);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-content-wrapper {
        padding: 0 20px;
    }
    
    .social-title {
        font-size: 16px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-link {
        margin-top: 5px;
    }
}

/* Dark Mode Styles */
body:not(.tmp-white-version) {
    background: #0f0f0f;
}

body:not(.tmp-white-version) .auth-page-main {
    background: #0f0f0f;
}

body:not(.tmp-white-version) .tmp-header-area-start {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.tmp-white-version) .auth-content-wrapper .title {
    color: #ffffff;
}

body:not(.tmp-white-version) .social-title {
    color: #ffffff;
}

/* Social login buttons in dark mode */
body:not(.tmp-white-version) .social-login-btn {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.2);
}

body:not(.tmp-white-version) .social-login-btn:hover {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.3);
}

body:not(.tmp-white-version) .google-btn:hover {
    background: #252525;
    border-color: #4285f4;
}

/* Divider in dark mode */
body:not(.tmp-white-version) .divider-line {
    background: rgba(255, 255, 255, 0.2);
}

body:not(.tmp-white-version) .divider-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Form elements in dark mode */
body:not(.tmp-white-version) .form-label {
    color: #ffffff;
}

body:not(.tmp-white-version) .form-control {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body:not(.tmp-white-version) .form-control:focus {
    background: #252525;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 1, 79, 0.2);
}

body:not(.tmp-white-version) .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Checkbox in dark mode */
body:not(.tmp-white-version) .form-check-input {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.3);
}

body:not(.tmp-white-version) .form-check-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Form hint text in dark mode */
body:not(.tmp-white-version) .form-hint,
body:not(.tmp-white-version) .form-text,
body:not(.tmp-white-version) .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Auth link in dark mode */
body:not(.tmp-white-version) .auth-link {
    color: rgba(255, 255, 255, 0.8);
}

body:not(.tmp-white-version) .auth-link a {
    color: var(--color-primary);
}

/* Terms & Conditions in dark mode */
body:not(.tmp-white-version) .terms-check .form-check-label {
    color: rgba(255, 255, 255, 0.8);
}

body:not(.tmp-white-version) .terms-check .form-check-label a {
    color: var(--color-primary);
}

/* Footer in dark mode */
body:not(.tmp-white-version) .tmp-footer-area {
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.tmp-white-version) .copyright-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Input error messages in dark mode */
body:not(.tmp-white-version) .text-red-600,
body:not(.tmp-white-version) .text-red-400 {
    color: #ef4444;
}

/* Session status in dark mode */
body:not(.tmp-white-version) .text-green-600 {
    color: #51cf66;
}