﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    min-height: 100vh;
    background: url('/images/login_bg_fix.jpg') center/cover no-repeat;
    background-color: #2c4756;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    /* 背景遮罩 */
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(44, 71, 86, 0.5);
        z-index: 1;
    }

.login-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.divider {
    width: 300px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    margin: 0 auto 0px auto;
}

.logo-icon {
    /*width: 60px;*/
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .logo-icon::before {
        content: '';
        width: 12px;
        height: 12px;
        background: white;
        border-radius: 50%;
        position: absolute;
        top: 12px;
        left: 18px;
    }

    .logo-icon::after {
        content: '';
        width: 20px;
        height: 25px;
        background: white;
        border-radius: 10px 10px 50% 50%;
        position: absolute;
        bottom: 8px;
        left: 20px;
    }

.logo-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
}

.login-form {
    background: transparent;
    border-radius: 12px;
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

    .form-input:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.95);
    }

    .form-input::placeholder {
        color: #aaa;
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d73727, #e85a4f);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .login-btn:hover {
        background: linear-gradient(135deg, #c12d1f, #d73727);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(215, 55, 39, 0.3);
    }

    .login-btn:active {
        transform: translateY(0);
    }

/* 響應式設計 */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    .login-form {
        padding: 30px 20px;
    }

    .logo-text {
        font-size: 24px;
    }
}

/* 漸入動畫 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
