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

body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #edf1f6 100%);
    min-height: 100vh;
    margin: 0;
    color: #243447;
}

.log-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 16px 32px;
}

.log-container {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 30px;
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.log-header {
    text-align: center;
    margin-bottom: 28px;
}

.log-header h1 {
    color: #1f2d3d;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.log-subtitle {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.log-form .form-group {
    margin-bottom: 18px;
}

.log-form label {
    display: block;
    margin-bottom: 8px;
    color: #3b4b5d;
    font-size: 15px;
    font-weight: 600;
}

.log-form input[type="text"],
.log-form input[type="password"],
.log-form input[type="tel"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #c8d2df;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.log-form input:focus {
    outline: none;
    border-color: #2f6fb7;
    box-shadow: 0 0 0 3px rgba(47, 111, 183, 0.16);
}

.log-form input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.log-form .field-hint {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.log-remember {
    margin-bottom: 8px;
}

.log-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.log-remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1f5fae;
    cursor: pointer;
}

.log-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    padding: 0 18px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1f5fae 0%, #2b74c8 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 95, 174, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.log-submit:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 95, 174, 0.28);
}

.log-submit:active {
    transform: translateY(0);
}

.log-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 17px;
    color: #6b7280;
}

.log-footer a {
    color: #1f5fae;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}

.log-footer a:hover {
    text-decoration: underline;
}

.log-back-home {
    margin-top: 20px;
    text-align: center;
}

.log-back-home a {
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.log-back-home a:hover {
    color: #1f5fae;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .log-container {
        padding: 28px 20px 24px;
        border-radius: 12px;
    }

    .log-header h1 {
        font-size: 24px;
    }
}
