/* Auth Page Specific Styles (for signup.html and login.html) - PrinTex™ Theme */

/* Import PrinTex™ Brand Colors */
@import 'brand-colors.css';

.auth-section {
    padding: 60px 0;
    background-color: var(--brand-white);
    margin-top: 20px;
    box-shadow: 0 2px 5px var(--brand-shadow-light);
    text-align: center;
}

.auth-section h2 {
    font-size: 3em;
    color: var(--brand-accent);
    margin-bottom: 40px;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--brand-bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--brand-shadow-light);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--brand-text-secondary);
}

/* --- 修改開始：將 text 和 tel 類型加入，確保所有輸入框樣式一致 --- */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: calc(100% - 22px); /* 考慮 padding 和 border */
    padding: 10px;
    border: 1px solid var(--brand-border-medium);
    border-radius: 5px;
    font-size: 1em;
}
/* --- 修改結束 --- */

.auth-form .btn {
    width: 100%;
    margin-top: 20px;
    font-size: 1.2em;
}

.auth-link {
    margin-top: 20px;
    font-size: 1.1em;
    color: var(--brand-text-secondary);
}

.auth-link a {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: bold;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Password hint text */
.password-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: var(--brand-text-muted);
    font-weight: normal;
}

.message {
    margin-top: 20px;
    font-weight: bold;
}

.message.success {
    color: var(--brand-success);
}

.message.error {
    color: var(--brand-error);
}

/* Consent Section Styles */
.consent-section {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--brand-bg-tertiary);
    border-radius: 5px;
    border: 1px solid var(--brand-border-light);
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-container {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 0;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--brand-white);
    border: 2px solid var(--brand-border-medium);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--brand-accent);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid var(--brand-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container a {
    color: var(--brand-accent);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}
