/**
 * MuseFlow V5 - Auth Pages CSS (Login & Signup)
 * MSA Architecture - Shared Authentication UI Styles
 */

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

body {
    font-family: 'Inter', sans-serif;
    background: #0d0d0d;
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Auth Container */
.auth-container {
    max-width: 400px;
    width: 100%;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Auth Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.375rem;
}

.auth-logo p {
    color: #71717a;
    font-size: 0.8125rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 400;
    font-size: 0.8125rem;
    color: #a1a1aa;
}

.form-group input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.form-group input::placeholder {
    color: #52525b;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.625rem;
    background: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #0d0d0d;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #e5e7eb;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
}

.auth-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #e5e7eb;
}

/* Messages */
.error-message {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    margin-bottom: 0.875rem;
    font-size: 0.8125rem;
    display: none;
}

.success-message {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    display: none;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #71717a;
    text-decoration: none;
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #e5e7eb;
}

/* Remember & Forgot Password */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #a1a1aa;
}

.remember-me input[type="checkbox"] {
    width: auto;
}

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

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #52525b;
    cursor: pointer;
    padding: 0.375rem;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #a1a1aa;
}

.password-toggle:focus {
    outline: none;
    color: #e5e7eb;
}

.password-wrapper input {
    padding-right: 3rem;
}

/* Language Selector */
.lang-selector {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.lang-select {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.lang-select:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
}

.lang-select option {
    background: #1a0f2e;
    color: white;
}

/* OAuth Divider */
.oauth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.oauth-divider span {
    padding: 0 1rem;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.oauth-btn {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 0.8125rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.oauth-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.oauth-btn i {
    font-size: 1rem;
}

.oauth-btn.google {
    background: rgba(66, 133, 244, 0.06);
    border-color: rgba(66, 133, 244, 0.15);
}

.oauth-btn.google:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.25);
}

.oauth-btn.naver {
    background: rgba(3, 199, 90, 0.06);
    border-color: rgba(3, 199, 90, 0.15);
}

.oauth-btn.naver:hover {
    background: rgba(3, 199, 90, 0.1);
    border-color: rgba(3, 199, 90, 0.25);
}

.oauth-btn.kakao {
    background: rgba(254, 229, 0, 0.06);
    border-color: rgba(254, 229, 0, 0.15);
    color: #fef08a;
}

.oauth-btn.kakao:hover {
    background: rgba(254, 229, 0, 0.1);
    border-color: rgba(254, 229, 0, 0.25);
}
