@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

body.pace-top {
    background-color: #090d16 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

#page-container {
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #090d16 !important;
}

.login-split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.login-left-panel {
    position: relative;
    width: 55%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 3.5rem;
    box-sizing: border-box;
    background: transparent !important;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(135deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.8) 50%, rgba(9, 13, 22, 0.5) 100%);
}

.brand-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-hero {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 480px;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 1.55rem;
    line-height: 1.6;
    color: #94a3b8;
    font-weight: 400;
}

.brand-footer {
    font-size: 1.05rem;
    color: #64748b;
}

.login-right-panel {
    width: 45%;
    height: 100%;
    background-color: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    box-sizing: border-box;
    z-index: 3;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow-y: auto;
}

.login-right-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(249, 115, 22, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 2;
}

.login-form-header {
    margin-bottom: 2.2rem;
}

.login-form-header h2 {
    color: #ffffff;
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.login-form-header p {
    color: #64748b;
    font-size: 1.35rem;
    margin: 0;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label-modern {
    color: #94a3b8;
    font-size: 1.15rem;
    font-weight: 500;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    color: #475569;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.form-control-modern {
    width: 100%;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 14px 48px 14px 48px !important;
    color: #ffffff !important;
    font-size: 1.30rem !important;
    font-family: inherit !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    height: auto !important;
}

.form-control-modern::placeholder {
    color: #475569;
}

.form-control-modern:focus {
    border-color: #f97316 !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
    outline: none !important;
}

.input-wrapper:focus-within .input-icon {
    color: #f97316;
}

.toggle-password {
    position: absolute;
    right: 14px;
    color: #475569;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: #f97316;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 1.40rem !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.2) !important;
    width: 100% !important;
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35) !important;
}

.btn-modern-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2) !important;
}

.btn-modern-primary:disabled,
.btn-modern-primary[disabled] {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.55 !important;
    transform: none !important;
}

.btn-modern-primary:disabled:hover,
.btn-modern-primary[disabled]:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

.button-icon {
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

.btn-modern-primary:not([disabled]):hover .button-icon {
    transform: translateX(4px);
}

.login-recover-row {
    text-align: center;
    margin-top: -0.25rem;
}

.login-recover-link {
    color: #64748b;
    font-size: 1.15rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-recover-link:hover {
    color: #f97316;
    text-decoration: none;
}

.login-register-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-register-text {
    color: #64748b;
    font-size: 1.15rem;
}

.btn-register-link {
    background: transparent;
    border: none;
    color: #f97316;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s ease;
}

.btn-register-link:hover {
    color: #fb923c;
    text-decoration: underline;
}

.mobile-logo-container {
    display: none;
}

.login-message {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1.10rem;
    line-height: 1.5;
    text-align: center;
    display: none;
}

.login-message.error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.login-message.warning {
    background: rgba(249, 115, 22, 0.10);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #fdba74;
}

.login-message.info {
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: btn-spin 0.7s linear infinite;
}

.btn-spinner-label {
    margin-left: 8px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .login-left-panel {
        width: 50%;
        padding: 2.5rem;
    }

    .login-right-panel {
        width: 50%;
        padding: 2.5rem;
    }

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

@media (max-width: 768px) {
    .video-overlay {
        display: none;
    }

    .login-left-panel {
        display: none;
    }

    .login-right-panel {
        width: 100% !important;
        padding: 3rem 2rem !important;
        background-color: rgba(9, 13, 22, 0.75) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-left: none !important;
    }

    .login-right-panel::before {
        display: none;
    }

    .mobile-logo-container {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 2rem;
    }

    .mobile-brand-logo {
        height: 38px;
        width: auto;
        filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
    }
}

.modern-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    overflow: hidden;
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.modern-alert-error.alert-hiding {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    padding: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.alert-icon {
    color: #ef4444;
    font-size: 1.35rem;
    margin-top: 2px;
}

.alert-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.alert-text strong {
    color: #ef4444;
    font-weight: 600;
}

.alert-text span {
    color: #fca5a5;
}
