﻿/* ========================================= */
/* === 全域與卡片佈局 (Global & Layout) === */
/* ========================================= */

body, .page-wrapper {
    background-color: #f5f5f5 !important;
}

.register-body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-family: "微軟正黑體", sans-serif;
    margin: 0;
}

.register-main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.register-card {
    background: white;
    width: 100%;
    max-width: 800px;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.register-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

.applicant-footer {
    background-color: #444;
    color: #ccc;
    text-align: center;
    padding: 12px 0;
    font-size: 0.85rem;
}

/* ========================================= */
/* === 表單排版系統 (Form Layout) === */
/* ========================================= */

.form-group {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-label {
    width: 180px;
    text-align: right;
    padding-right: 15px;
    padding-top: 8px;
    color: #333;
}

.form-content {
    flex-grow: 1;
}

.form-input {
    width: 100%;
    max-width: 250px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

    .form-input:focus {
        border-color: #ff8c00;
    }

    .form-input.wide {
        max-width: 450px;
    }

    .form-input:disabled {
        background-color: #e9ecef;
        cursor: not-allowed;
    }

/* ========================================= */
/* === 表單特殊元件 (Components) === */
/* ========================================= */

.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px;
}

    .password-wrapper .form-input {
        width: 100%;
        padding-right: 35px;
        box-sizing: border-box;
    }

.eye-icon {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .captcha-wrapper .form-input {
        max-width: 120px;
    }

.captcha-img {
    border: 1px dashed #0056b3;
    padding: 5px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 5px;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVQIW2NkYGD4z8DAwMgAI0AMDA4BGw/8aHQAAAAASUVORK5CYII=') repeat;
}

.refresh-icon {
    color: #ff8c00;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ========================================= */
/* === 表單操作與提示區 (Actions & Hints) === */
/* ========================================= */

.required-star {
    color: #d9534f;
    margin-right: 5px;
}

.hint-inline {
    color: #ff8c00;
    margin-left: 10px;
    font-size: 0.95rem;
}

.hint-block {
    color: #ff8c00;
    font-size: 0.85rem;
    margin-top: 5px;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: bold;
}

.submit-btn-wrapper {
    text-align: center;
}

.btn-submit {
    background-color: #ff8c00;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-submit:hover {
        background-color: #e67e00;
    }

.login-links {
    margin-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: bold;
}

    .login-links a {
        color: #333;
        text-decoration: none;
        padding: 0 10px;
        transition: color 0.2s;
    }

        .login-links a:hover {
            color: #ff8c00;
        }

/* ========================================= */
/* === 手機版響應式微調 (RWD) === */
/* ========================================= */

@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
}
