:root {
    --sap-brand: #0a6ed1;
    --sap-brand-dark: #0854a0;
    --sap-bg: #f4f5f6;
    --sap-text: #32363a;
    --sap-title: #1c252d;
    --sap-border: #d9d9d9;
    --sap-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--sap-bg);
    color: var(--sap-text);
}

.login-page {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-container {
    flex: 1;
    display: flex;
    width: 100%;
}

.login-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Panel - Brand / Image */
.login-brand-panel {
    flex: 1;
    display: none;
    background: linear-gradient(135deg, #1d2d3e 0%, #0a6ed1 100%);
    position: relative;
    overflow: hidden;
    color: white;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

@media (min-width: 992px) {
    .login-brand-panel {
        display: flex;
    }
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/cover no-repeat;
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
}

/* Right Panel - Form */
.login-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: white;
    position: relative;
}

@media (min-width: 992px) {
    .login-form-panel {
        flex: 0 0 500px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 10;
    }
}

@media (min-width: 1200px) {
    .login-form-panel {
        flex: 0 0 600px;
    }
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 2rem 0;
}

.login-logo {
    width: 160px;
    height: auto;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.welcome-text {
    color: var(--sap-title);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.welcome-subtext {
    color: #6c757d;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* Form Inputs */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    height: 58px;
    border-radius: 0.5rem;
    border: 1px solid var(--sap-border);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: white;
    border-color: var(--sap-brand);
    box-shadow: 0 0 0 4px rgba(10, 110, 209, 0.1);
}

.form-floating > label {
    padding: 1rem 1.25rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--sap-brand);
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    background-color: transparent;
}

/* Button */
.btn-primary {
    height: 54px;
    border-radius: 0.5rem;
    background-color: var(--sap-brand);
    border-color: var(--sap-brand);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--sap-brand-dark);
    border-color: var(--sap-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 110, 209, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alert */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    animation: slideInDown 0.3s ease-out;
}

.alert-danger {
    background-color: #fff0f0;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

/* Footer in Form Panel */
.login-footer-mini {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    color: #a0aab5;
    font-size: 0.875rem;
    padding: 0 2rem;
}

.login-footer-mini a {
    color: var(--sap-brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-footer-mini a:hover {
    color: var(--sap-brand-dark);
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
