/* =========================
   Login Page 
   ========================= */

/* Base */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f7fb;
}

/* Page */
.login-page {
    min-height: 100vh;
    background: #f4f7fb;
    overflow-x: hidden;
}

/* =========================
   Header
   ========================= */

.login-container-header {

    min-height: 480px;

    background: linear-gradient(
        135deg,
        #1565C0 0%,
        #1E88E5 50%,
        #42A5F5 100%
    );

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

/* Logo */
.login-logo {

    width: 500px;
    max-width: 85%;
    height: auto;

    filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}

/* =========================
   Login Container
   ========================= */

.login-container {

    margin-top: -80px;

    position: relative;
    z-index: 10;
}

/* Center */
.login-center {

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
}

/* =========================
   Card 
   ========================= */

.login-card {

    width: 100%;

    max-width: 560px;

    min-width: 380px;

    background: #fff;

    border-radius: 20px;

    padding: 40px;

    box-shadow: 0 12px 40px rgba(0,0,0,.12);

    transition: all .25s ease;
}

/* hover */
.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
}

/* =========================
   Title
   ========================= */

.login-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: #1565C0;
    margin-bottom: 25px;
}

/* =========================
   Form
   ========================= */

.login-page .form-group {
    margin-bottom: 18px;
}

.login-page .form-control {

    height: 50px;

    width: 100%;

    border-radius: 12px;

    border: 1px solid #dbe2ea;

    padding: 0 16px;

    font-size: 18px;

    box-shadow: none;

    transition: all .2s ease;
}

.login-page .form-control:focus {

    border-color: #1E88E5;

    box-shadow: 0 0 0 4px rgba(30,136,229,.15);

    outline: none;
}

.login-page .form-control::placeholder {
    color: #9aa5b1;
}

/* =========================
   CAPTCHA 
   ========================= */

.captcha-wrapper {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;
}

/*  input 不會被壓爆 */
/* .captcha-input {

    flex: 1 1 180px;

    min-width: 160px;
} */

/* image 固定不縮 */
.captcha-image {

    width: 120px;

    height: 50px;

    border-radius: 10px;

    cursor: pointer;

    border: 1px solid #dbe2ea;

    flex-shrink: 0;

    object-fit: cover;

    transition: all .2s ease;
}

.captcha-image:hover {
    opacity: .9;
    transform: scale(1.02);
}

/* =========================
   Button
   ========================= */

.login-btn {

    width: 100%;

    height: 52px;

    border: none;

    border-radius: 12px;

    background: linear-gradient(135deg, #1565C0, #1E88E5);

    color: #fff;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: all .25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(21,101,192,.25);
}

/* =========================
   Alert
   ========================= */

.login-page .alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {

    .login-container-header {
        min-height: 280px;
        padding: 30px 16px;
    }

    .login-logo {
        width: 300px;
    }

    .login-container {
        margin-top: -40px;
    }

    .login-card {
        padding: 26px 20px;
        border-radius: 16px;

        min-width: unset;
        max-width: 92vw;
    }

    .login-title {
        font-size: 22px;
    }

    /* CAPTCHA mobile */
    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    /* .captcha-input {
        min-width: unset;
    } */

    .captcha-image {
        width: 100%;
        height: auto;
        max-height: 60px;
    }

    .login-btn {
        height: 48px;
    }
}