/* TENPRO Modern Login Styles */

.login-root {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animated gradient background */
.login-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 25%, #1e3a5f 50%, #0f2744 75%, #1e3a5f 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

.login-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(45, 90, 135, 0.4) 0%, transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(30, 58, 95, 0.5) 0%, transparent 60%);
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass card */
.login-glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Split layout container */
.login-split-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    max-width: 1100px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Left side branding */
.login-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
}

.login-branding.hidden {
    display: none !important;
}

.login-image-wrap {
    position: relative;
    width: 420px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.login-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.login-image-wrap img.active {
    opacity: 1;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Partner logos */
.partner-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.logo-row img {
    height: 44px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.logo-row img:hover {
    opacity: 1;
}

/* Form styling */
.login-form-wrap {
    flex: 0 0 auto;
}

.login-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 12px;
    object-fit: contain;
}

.login-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.login-subheading {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Input fields */
.ten-input-group {
    margin-bottom: 1rem;
    position: relative;
}

.ten-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.2s ease;
    outline: none;
}

.ten-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ten-input::placeholder {
    color: #9ca3af;
}

.ten-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.ten-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.ten-password-toggle:hover {
    color: #3b82f6;
}

/* Forgot password */
.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.forgot-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Login button */
.ten-btn-login {
    width: 100%;
    padding: 0.875rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ten-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.ten-btn-login:active {
    transform: translateY(0);
}

/* Social logins */
.social-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #9ca3af;
    font-size: 0.85rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Sign up link */
.signup-prompt {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.signup-prompt a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

/* Signup disabled */
.signup-prompt.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .login-split-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .login-image-wrap {
        width: 100%;
        max-width: 360px;
        height: 240px;
    }

    .brand-title {
        font-size: 2rem;
    }

    .login-branding {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-glass-card {
        padding: 1.75rem;
        border-radius: 20px;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .login-image-wrap {
        height: 200px;
    }
}

/* Centered layout (for SalesPro / mobile override) */
.centered-layout .login-branding {
    display: none !important;
}

.centered-layout .login-split-container {
    justify-content: center;
}

/* Loader for images */
.login-image-wrap img {
    background: #1e3a5f;
}
