﻿/* =========================================================
   SmatoroAI Login Screen Styles (Exact UI Match)
   ========================================================= */

.login-viewport {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle overlay on the background */
.login-viewport::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1050px;
    height: 640px;
    max-height: 92vh;
    background: var(--bg-surface);
    border-radius: 28px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
}

/* Left Carousel Panel */
.login-left-panel {
    width: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #ffffff;
}

.carousel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.82) 0%, rgba(39, 63, 79, 0.88) 100%);
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.carousel-icon-box svg {
    width: 34px;
    height: 34px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.carousel-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.carousel-subtitle {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* Right Login Form Panel */
.login-right-panel {
    width: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    overflow-y: auto;
}

.login-form-box {
    width: 100%;
    max-width: 380px;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    height: 64px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-subtext {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Form inputs */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

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

.input-icon-left {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 42px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: var(--bg-surface);
    outline: none;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Select Dropdown */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 36px;
}

.select-arrow {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: 24px;
}

.submit-btn:hover {
    box-shadow: 0 10px 25px var(--accent-glow);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Error & Success alerts */
.alert-box {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
    display: none;
}

.alert-error {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert-success {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

/* TV adjustments */
@media (max-width: 860px) {
    .login-left-panel {
        display: none;
    }
    .login-right-panel {
        width: 100%;
    }
}
