/* JustAndroid Premium Split-Pane Login & Signup Styles */

.login-body {
    margin: 0;
    padding: 0;
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.login-page {
    height: 100vh;
    display: grid;
    grid-template-columns: 460px 1fr;
    overflow: hidden;
    background: #0f172a;
}

/* --- Left Pane --- */
.login-left {
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 28px 40px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f8fafc;
    margin-bottom: 28px;
    width: fit-content;
    transition: opacity 0.2s ease;
}

.login-logo:hover {
    opacity: 0.9;
}

.login-logo i {
    font-size: 24px;
    color: #10b981;
}

.login-logo span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 360px;
    width: 100%;
    margin: auto 0;
}

.login-form-container h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin: 0 0 4px 0;
    color: #f8fafc;
}

.login-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* --- Auth Buttons --- */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

/* Guest Button — most prominent */
.auth-btn-guest {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    letter-spacing: 0.2px;
}

.auth-btn-guest:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.12) 100%);
    border-color: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

/* GitHub / Google buttons */
.auth-btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.auth-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-1px);
}

.auth-btn i {
    font-size: 16px;
}

/* --- Divider --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 18px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* --- Form Fields --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 12px;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #34d399;
    text-decoration: underline;
}

.form-field input {
    width: 100%;
    padding: 11px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.form-field input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    background: rgba(15, 23, 42, 0.95);
}

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

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-pw:hover {
    color: #cbd5e1;
}

.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    background: #10b981;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    font-family: inherit;
    margin-top: 4px;
}

.btn-full:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* --- Footer Copy --- */
.signup-link {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin: 4px 0 0 0;
}

.signup-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link a:hover {
    color: #34d399;
    text-decoration: underline;
}

.terms-text {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    line-height: 1.5;
    margin: 20px 0 0 0;
}

.terms-text a {
    color: #94a3b8;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-text a:hover {
    color: #cbd5e1;
}

/* --- Right Pane --- */
.login-right {
    position: relative;
    background: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.login-right::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-quote-container {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 48px;
}

.quote-mark {
    font-size: 110px;
    font-family: Georgia, serif;
    line-height: 1;
    color: #10b981;
    opacity: 0.2;
    user-select: none;
    margin-bottom: -24px;
}

blockquote {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.4px;
    color: #f8fafc;
    border: none;
    padding: 0;
    margin: 0 0 36px;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quote-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.quote-author div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quote-author strong {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
}

.quote-author span {
    font-size: 14px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
    .login-page {
        grid-template-columns: 1fr;
    }
    .login-right {
        display: none;
    }
    .login-left {
        padding: 24px 20px;
        align-items: center;
    }
    .login-logo {
        margin-bottom: 24px;
    }
}