/* Login page — mascots & form styles */

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #eaf7ee 100%);
  
}

.login-container {
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    width: 100%;
    max-width: 430px;
    background: #fff;
    padding: 30px 30px 35px;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-mascot-stage {
    position: relative;
    width: 100%;
    height: 165px;
    margin: 0 auto 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.login-mascot-shadow-group {
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 180px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    filter: blur(6px);
}

.login-mascot {
    width: 108px;
    height: 138px;
    transition: transform .22s ease;
    transform-origin: center bottom;
    user-select: none;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.login-mascot.mascot-center {
    width: 118px;
    height: 148px;
    z-index: 3;
}

.login-mascot.is-bounce {
    animation: mascotBounce .55s ease;
}

.login-mascot.is-nope {
    animation: mascotNope .55s ease;
}

.login-mascot.is-peek {
    transform: rotate(-5deg) translateY(-2px);
}

.login-mascot.is-password .mascot-hand-left,
.login-mascot.is-password .mascot-hand-right {
    transform: translateY(-22px);
}

.login-mascot.is-hide .mascot-hand-left {
    transform: translate(14px, -36px) rotate(22deg);
}

.login-mascot.is-hide .mascot-hand-right {
    transform: translate(-14px, -36px) rotate(-22deg);
}

.login-mascot.is-hide .mascot-eye {
    transform: scaleY(.08);
}

.login-mascot.is-hide .mascot-mouth {
    transform: scaleX(.6);
}

.login-mascot .mascot-head {
    transition: transform .18s ease;
    transform-origin: center center;
}

.login-mascot .mascot-eye,
.login-mascot .mascot-hand-left,
.login-mascot .mascot-hand-right,
.login-mascot .mascot-mouth,
.login-mascot .mascot-brow-left,
.login-mascot .mascot-brow-right {
    transition: transform .18s ease;
    transform-origin: center center;
}

.login-mascot.is-nope .mascot-brow-left,
.login-mascot.is-nope .mascot-brow-right {
    transform: translateY(-1px);
}

@keyframes mascotBounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    55%  { transform: translateY(0); }
    72%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

@keyframes mascotNope {
    0%   { transform: translateX(0) rotate(0); }
    15%  { transform: translateX(-5px) rotate(-4deg); }
    30%  { transform: translateX(5px) rotate(4deg); }
    45%  { transform: translateX(-4px) rotate(-3deg); }
    60%  { transform: translateX(4px) rotate(3deg); }
    75%  { transform: translateX(-2px) rotate(-2deg); }
    100% { transform: translateX(0) rotate(0); }
}

.login-form h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.login-form h6 {
    color: #6c757d;
    margin-bottom: 1.25rem;
}

.form-control.rounded-pill {
    height: calc(1.5em + 1rem + 14px);
    padding-right: 1rem;
    border: 1px solid #d9dee3;
    transition: all .2s ease;
}

.form-control.rounded-pill:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-control {
    padding-left: 46px;
}

.input-left-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-left-icon svg {
    width: 18px;
    height: 18px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-left: 46px;
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}

.toggle-password:hover {
    color: #28a745;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.btn-login {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .2px;
    padding-top: .75rem;
    padding-bottom: .75rem;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.18);
    transition: all .2s ease;
    position: relative;
}

.btn-login:hover {
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: .9;
    cursor: not-allowed;
    transform: none;
}

.icon-btn-submit {
    margin-right: 6px;
    vertical-align: -2px;
}

.btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.btn-login.is-loading .btn-loader {
    display: inline-block;
}

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

.alert {
    border-radius: 12px;
    font-size: .95rem;
    margin-bottom: 1rem;
}

.login-subtle-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.08), transparent);
    margin: 16px 0 0;
}

.login-footer {
    margin-top: 16px;
    color: #6c757d;
    font-size: .88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-footer svg {
    width: 15px;
    height: 15px;
    color: #28a745;
}

@media (max-width: 575.98px) {
    .login-form {
        padding: 24px 20px 30px;
    }

    .login-mascot-stage {
        height: 145px;
    }

    .login-mascot {
        width: 88px;
        height: 118px;
    }

    .login-mascot.mascot-center {
        width: 96px;
        height: 128px;
    }
}