/* ============================================
   KIDA - Login / Register Page Styles
   ============================================ */

.login-body {
    background: var(--color-bg);
    min-height: 100vh;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ---- Left Branding Panel ---- */
.login-branding {
    background: linear-gradient(135deg, #FF8E53 0%, #e67a3f 50%, #d4692e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-branding-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.login-logo {
    display: inline-block;
    margin-bottom: 2rem;
}

.login-logo span {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

.login-branding h2 {
    color: white;
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.login-branding > .login-branding-content > p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.login-feature i {
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Decorative circles */
.login-branding-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.deco-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.deco-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
}

.deco-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    background: rgba(255,255,255,0.04);
}

/* ---- Right Form Panel ---- */
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--color-white);
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 440px;
}

/* Tabs */
.form-tabs {
    display: flex;
    background: var(--color-bg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
}

.form-tab {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
}

.form-tab.active {
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

/* Form */
.auth-form {
    animation: fadeInForm 0.3s ease;
}

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

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-link {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-text-light);
    font-size: 1rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: var(--transition);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255,142,83,0.1);
}

.input-wrapper input::placeholder {
    color: #A0AEC0;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
}

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

/* Password strength */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-fill.weak { width: 33%; background: var(--color-danger); }
.strength-fill.medium { width: 66%; background: #F6AD55; }
.strength-fill.strong { width: 100%; background: var(--color-success); }

.strength-text {
    font-size: 0.75rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1.4;
}

.form-submit {
    width: 100%;
}

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.form-divider span {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--color-text-light);
    background: var(--color-bg);
}

/* Form row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Footer text */
.form-footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.form-link-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0;
}

.form-link-btn:hover {
    text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-branding {
        display: none;
    }

    .login-form-panel {
        padding: 2rem 1.5rem;
        min-height: 100vh;
    }

    .login-form-container {
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .login-form-panel {
        padding: 1.5rem 1rem;
    }
}
