/* ATLAN Unified Auth Styles */

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

:root {
    --deep-navy: #0a192f;
    --orichalcum-gold: #d4af37;
    --text-light: #ccd6f6;
    --text-secondary: #8892b0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--deep-navy);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    color: var(--orichalcum-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.logo-icon svg {
    color: var(--orichalcum-gold);
}

/* Atlantis symbol animations */
.logo-icon .circle-1 {
    animation: pulse-circle 4s ease-in-out infinite;
    transform-origin: center;
}

.logo-icon .circle-2 {
    animation: pulse-circle 4s ease-in-out infinite 0.5s;
    transform-origin: center;
}

.logo-icon .circle-3 {
    animation: pulse-circle 4s ease-in-out infinite 1s;
    transform-origin: center;
}

.logo-icon .trident {
    animation: glow-pulse 3s ease-in-out infinite;
}

.logo-icon .dot-1 {
    animation: mystical-float 3s ease-in-out infinite;
}

.logo-icon .dot-2 {
    animation: mystical-float 3s ease-in-out infinite 0.75s;
}

.logo-icon .dot-3 {
    animation: mystical-float 3s ease-in-out infinite 1.5s;
}

.logo-icon .dot-4 {
    animation: mystical-float 3s ease-in-out infinite 2.25s;
}

@keyframes pulse-circle {
    0%, 100% {
        opacity: 0.3;
        stroke-width: 1;
    }
    50% {
        opacity: 0.8;
        stroke-width: 1.5;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 3px currentColor);
        opacity: 1;
    }
    50% {
        filter: drop-shadow(0 0 8px currentColor);
        opacity: 0.9;
    }
}

@keyframes mystical-float {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo h1 {
    font-size: 2.5rem;
    color: var(--orichalcum-gold);
    margin: 15px 0 5px 0;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.logo p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 5px;
}

.auth-form {
    margin-top: 30px;
    animation: fadeIn 0.4s ease-in-out;
}

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

.auth-form h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.info-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

/* 비밀번호 입력 래퍼 */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

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

.password-toggle .eye-icon {
    width: 20px;
    height: 20px;
}

/* 체크박스 그룹 */
.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--orichalcum-gold);
}

.checkbox-label:hover {
    color: var(--orichalcum-gold);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--orichalcum-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--orichalcum-gold);
    color: var(--deep-navy);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
}

.btn-primary:hover {
    background: #e5c04a;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(10, 25, 47, 0.3);
    border-top-color: var(--deep-navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .spinner {
    display: block;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.9rem;
    animation: shake 0.3s ease;
}

.message.show {
    display: block;
}

.message.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.message.success {
    background: rgba(81, 207, 102, 0.2);
    border: 1px solid rgba(81, 207, 102, 0.5);
    color: #51cf66;
}

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

.switch-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.switch-link a {
    color: var(--orichalcum-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-link a:hover {
    color: #e5c04a;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-container {
        width: 95%;
        padding: 40px 25px;
    }

    .logo h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }
}
