﻿

body {
    background: url('../img/login_bg.png') left top repeat-y !important;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft JhengHei', sans-serif;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-container {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 220px;
}

.login-title {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 22px;
}

.login-version {
    text-align: center;
    font-size: 14px;
    color: #007bff;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.login-button {
    color: #FFF;
    background: #69a0f0;
    border-color: #69a0f0;
    font-size: 1rem;
    transition: 1s;
    -webkit-transition: 1s;
}

.login-button:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.login-button:focus {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 0 0 .25rem rgba(49, 132, 253, .5);
}

.custom_LoginBottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.language-select {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    width: auto;
}

.forgot-link {
    font-size: 14px;
    text-decoration: none;
    color: #007bff;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.form-language-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-fixed {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: #999;
    opacity: 0.6;
    z-index: 999;
}

/* RWD 補強區塊 */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
        box-shadow: none;
        border-radius: 8px;
    }

    .login-logo img {
        max-width: 180px;
    }

    .login-title {
        font-size: 20px;
    }

    .form-control {
        font-size: 14px;
        padding: 8px;
    }

    .form-options,
    .form-language-select {
        flex-direction: column;
        align-items: stretch;
    }

    .login-button {
        width: 100%;
    }

    .language-select {
        width: 100%;
    }

    .forgot-link {
        align-self: flex-end;
    }

    .login-footer {
        margin-top: 20px;
        font-size: 12px;
    }
}