/* ========================================
   Login / Signup Page Styles
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 50%, #a8edea 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    padding: 30px;
    width: 100%;
    max-width: 450px;
    height: 720px;
    position: relative;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .auth-container {
        max-width: 1200px;
        height: 790px;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        gap: 60px;
        padding: 80px 100px;
        background: #ffffff;
    }
}

/* Desktop Left Panel */
.desktop-left-panel {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-left-panel {
        display: flex;
        flex: 0.6;
        align-items: center;
        justify-content: center;
    }

    .church-name {
        font-size: 2rem;
        font-weight: 700;
        color: #5b6ef5;
        line-height: 1.3;
        text-align: center;
    }
}

@media (min-width: 1150px) {
    .church-name {
        font-size: 3rem;
        font-weight: 700;
        color: #5b6ef5;
        line-height: 1.3;
        text-align: center;
    }
}

/* Vertical Divider */
.vertical-divider {
    display: none;
}

@media (min-width: 1024px) {
    .vertical-divider {
        display: block;
        width: 2px;
        align-self: stretch;
        background: #d1d5db;
    }
}

/* Right Panel */
.auth-right-panel {
    width: 100%;
    flex: 1;
    position: relative;
    height: 100%;
}

@media (min-width: 1024px) {
    .auth-right-panel {
        flex: 1;
        max-width: 450px;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.auth-header h1 {
    font-size: 1.6rem;
    color: #4a9eff;
    margin-bottom: 8px;
}

/* Hide mobile title on desktop */
@media (min-width: 1024px) {
    .auth-header h1.mobile-title {
        display: none;
    }
}

.auth-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .auth-header p {
        color: #b0b0b0;
        font-size: 1.1rem;
        font-weight: 300;
    }
}

/* ========================================
   Tabs
   ======================================== */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 10px;
    position: relative;
    z-index: 5;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    background: white;
    color: #4a9eff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========================================
   Forms
   ======================================== */
.auth-form {
    display: none;
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    width: 100%;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a9eff;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #4a9eff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #3a88e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

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

/* ========================================
   Divider
   ======================================== */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
    padding: 0 10px;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ========================================
   Google Button
   ======================================== */
.google-btn {
    width: 100%;
    padding: 10px;
    background: white;
    color: #444;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    transform: none;
}

.google-btn svg {
    flex-shrink: 0;
}

/* ========================================
   Messages
   ======================================== */
.error-message,
.success-message {
    padding: 10px;
    border-radius: 8px;
    display: none;
    font-size: 0.9rem;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 10;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
}

/* ========================================
   Links
   ======================================== */
.back-link {
    display: block;
    text-align: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

@media (min-width: 1024px) {
    .back-link {
        bottom: 0;
    }
}

.back-link:hover {
    color: #4a9eff;
}