/**
 * FTX V3 - Login Enterprise
 * Modern, professional login page styling
 */

/* ============================================
   ROOT & VARIABLES
   ============================================ */
:root {
    --login-primary: #fe980a;
    --login-primary-dark: #e68a09;
    --login-primary-light: #ffb347;
    --login-bg-dark: #23262b;
    --login-bg-light: #f8f9fa;
    --login-text-dark: #1d1d1f;
    --login-text-light: #ffffff;
    --login-border: #e5e7eb;
    --login-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --login-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
    --login-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--login-bg-dark) 0%, #2a2d33 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(254, 152, 10, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(254, 152, 10, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-wrapper {
    display: flex;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ============================================
   PANELS
   ============================================ */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-panel-left {
    background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-primary-dark) 100%);
    color: var(--login-text-light);
    position: relative;
    overflow: hidden;
}

.login-panel-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.login-panel-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.login-panel-right {
    background: var(--login-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   BRANDING
   ============================================ */
.login-branding {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.login-logo-wrapper {
    margin-bottom: 30px;
    animation: slideInDown 0.6s ease-out;
}

.login-logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: var(--login-transition);
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    animation: slideInUp 0.6s ease-out 0.1s both;
}

.login-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

/* ============================================
   FORM CONTAINER
   ============================================ */
.login-form-container {
    width: 100%;
    max-width: 420px;
    animation: slideInRight 0.6s ease-out;
}

.login-form-header {
    margin-bottom: 40px;
    text-align: center;
}

.login-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--login-text-dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.login-form-description {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--login-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: var(--login-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--login-transition);
}

.login-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 2px solid var(--login-border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--login-text-dark);
    background: white;
    transition: var(--login-transition);
    font-family: inherit;
}

.login-input:focus {
    outline: none;
    border-color: var(--login-primary);
    box-shadow: 0 0 0 3px rgba(254, 152, 10, 0.1);
}

.login-input::placeholder {
    color: #9ca3af;
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--login-primary-dark);
    transform: scale(1.1);
}

/* ============================================
   REMEMBER ME
   ============================================ */
.login-form-remember {
    margin: 5px 0 10px 0;
}

.login-form-remember .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form-remember .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--login-border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--login-transition);
}

.login-form-remember .form-check-input:checked {
    background-color: var(--login-primary);
    border-color: var(--login-primary);
}

.login-form-remember .form-check-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.login-btn-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--login-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(254, 152, 10, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(254, 152, 10, 0.4);
}

.login-btn-submit:active {
    transform: translateY(0);
}

.login-btn-text {
    flex: 1;
}

.login-btn-icon {
    font-size: 0.9rem;
    transition: var(--login-transition);
}

.login-btn-submit:hover .login-btn-icon {
    transform: translateX(4px);
}

/* ============================================
   FORM FOOTER
   ============================================ */
.login-form-footer {
    text-align: center;
    margin-top: 20px;
}

.login-link {
    font-size: 0.9rem;
    color: var(--login-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--login-transition);
}

.login-link:hover {
    color: var(--login-primary-dark);
    text-decoration: underline;
}

/* ============================================
   BOTTOM FOOTER
   ============================================ */
.login-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.login-footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.login-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--login-transition);
}

.login-footer-link:hover {
    color: var(--login-primary-light);
}

.login-footer-logo {
    height: 20px;
    width: auto;
    opacity: 0.8;
    transition: var(--login-transition);
}

.login-footer-link:hover .login-footer-logo {
    opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .login-panel {
        padding: 30px 15px;
    }

    .login-form-container {
        max-width: 380px;
    }

    .login-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-panel {
        padding: 40px 20px;
        min-height: auto;
    }

    .login-panel-left {
        padding: 30px 20px;
        min-height: 200px;
    }

    .login-panel-right {
        padding: 30px 20px;
    }

    .login-form-container {
        max-width: 100%;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }

    .login-form-title {
        font-size: 1.5rem;
    }

    .login-logo {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .login-container {
        min-height: auto;
    }

    .login-panel {
        padding: 20px 15px;
    }

    .login-form-container {
        max-width: 100%;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-form-title {
        font-size: 1.25rem;
    }

    .login-form-description {
        font-size: 0.85rem;
    }

    .login-input {
        padding: 10px 12px 10px 40px;
        font-size: 0.9rem;
    }

    .login-btn-submit {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .login-footer {
        padding: 15px 10px;
    }

    .login-footer-text {
        font-size: 0.75rem;
    }
}

