/* 密碼取回頁面樣式 */

.auth-section {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auth-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

/* 標題底線樣式 */
.title-with-underline {
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.title-with-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 200px;
    max-width: fit-content;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
    width: 200px;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-section form {
    display: flex;
    flex-direction: column;
}

.auth-section label {
    margin-top: 15px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.auth-section label span {
    color: red;
    margin-left: 2px;
}

.auth-section input[type="text"],
.auth-section input[type="email"],
.auth-section input[type="tel"],
.auth-section input[type="date"],
.auth-section input[type="number"],
.auth-section input[type="password"] {
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth-section small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.auth-section input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

.method-selection {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    font-weight: normal;
    justify-content: center;
    white-space: nowrap;
}

.radio-label:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: bold;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.password-container {
    position: relative;
    margin-top: 5px;
}

.password-container input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 18px;
}

.toggle-password:hover {
    opacity: 0.7;
}

.btn {
    margin-top: 20px;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #0056b3;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.back-link a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 600px) {
    .auth-section {
        margin: 20px;
        padding: 20px;
    }
    
    .method-selection {
        flex-direction: column;
    }
    
    .auth-section h2 {
        font-size: 20px;
    }
}
