* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #f4f7fb;
    color: #1e293b;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-container {
    width: 100%;
    max-width: 1180px;
    min-height: 680px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.1);
}

.login-left {
    width: 50%;
    position: relative;
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(145deg,
            #111827 0%,
            #172554 48%,
            #2563eb 100%);
    color: #fff;
}

.login-left::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -180px;
    right: -150px;
}

.login-left::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -130px;
    left: -100px;
}

.brand-area,
.left-content,
.left-footer {
    position: relative;
    z-index: 2;
}

.brand-area {
    display: flex;
    align-items: center;
}

.brand-area img {
    max-width: 175px;
    max-height: 65px;
    object-fit: contain;
    object-position: left center;
}

.left-content {
    max-width: 450px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 22px;
}

.welcome-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.12);
}

.left-content h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}

.left-content h1 span {
    color: #93c5fd;
}

.left-content p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 35px;
    max-width: 420px;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
}

.left-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.login-right {
    width: 50%;
    padding: 60px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 410px;
}

.form-header {
    margin-bottom: 35px;
}

.small-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2563eb;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.form-header h2 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.8px;
}

.form-header p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    height: 54px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 0 50px 0 45px;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.25s ease;
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.password-toggle:hover {
    color: #2563eb;
}

.is-invalid {
    border-color: #ef4444 !important;
}

.invalid-feedback {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #dc2626;
}

.login-btn {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
    transition: all 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

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

.alert {
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    font-size: 12px;
    color: #94a3b8;
}

.secure-icon {
    color: #22c55e;
    font-weight: 700;
}

.login-footer {
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.login-footer span {
    font-size: 11px;
    color: #94a3b8;
}

.company-name {
    font-weight: 600;
    color: #64748b !important;
}

.toast-message {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    min-width: 300px;
    max-width: 420px;
    padding: 15px 18px;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.3s ease;
}

.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

.toast-warning {
    background: #d97706;
}

.toast-info {
    background: #2563eb;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 991px) {
    .login-container {
        max-width: 760px;
    }

    .login-left {
        width: 42%;
        padding: 40px;
    }

    .login-right {
        width: 58%;
        padding: 45px;
    }

    .left-content h1 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .login-wrapper {
        padding: 15px;
    }

    .login-container {
        min-height: auto;
        display: block;
        border-radius: 20px;
    }

    .login-left {
        width: 100%;
        min-height: 290px;
        padding: 30px;
    }

    .left-content {
        margin-top: 40px;
    }

    .left-content h1 {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .left-content p,
    .feature-list {
        display: none;
    }

    .left-footer {
        margin-top: 30px;
    }

    .login-right {
        width: 100%;
        padding: 35px 25px;
    }

    .form-header h2 {
        font-size: 29px;
    }

    .login-footer {
        flex-direction: column;
        align-items: center;
    }

    .toast-message {
        left: 15px;
        right: 15px;
        top: 15px;
        min-width: auto;
    }
}
