/* 固越成型機 - 安全登入介面 CSS 樣式表 */
:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(21, 28, 46, 0.85);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-border-focus: rgba(2, 132, 199, 0.6);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --accent-green: #10b981;
    --danger: #ef4444;
    --input-bg: #0d1322;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 2.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-icon {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(2, 132, 199, 0.4));
}

.login-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.system-badge {
    display: inline-block;
    font-size: 0.72rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--card-border-focus);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
    background: #111827;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #fff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    cursor: pointer;
    accent-color: var(--primary);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    color: #fff;
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

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

.error-msg {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.84rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    align-items: center;
    gap: 0.5rem;
}

.footer-info {
    text-align: center;
    margin-top: 1.8rem;
    line-height: 1.6;
}

.footer-client {
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
    margin: 0.85rem auto 0.75rem auto;
    width: 85%;
}

.footer-provider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.footer-provider-label {
    font-size: 0.68rem;
    color: #64748b;
    letter-spacing: 0.06em;
}

.footer-provider-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.04em;
}

.footer-provider-en {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.03em;
}
