/* auth.css - supplement styles for login/register pages (based on moban)
 * Pure ASCII comments for encoding safety
 */

/* ---- account section (login / register forms) ---- */
.lt-account {
    min-height: 500px;
    display: flex;
    align-items: center;
}
.account-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.account-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3e50;
    margin: 0 0 30px;
    text-align: center;
}

/* ---- lt-form (moban form override) ---- */
.lt-form .form-group {
    position: relative;
    margin-bottom: 20px;
}
.lt-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 46px;
    padding: 10px 45px 10px 15px;
    font-size: 14px;
    color: #555;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    background: #fff;
}
.lt-form .form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231,76,60,0.15);
    outline: none;
}
.lt-form .input-addon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

/* ---- checkbox / tnc ---- */
.lt-form .form-group.tnc {
    margin-bottom: 25px;
}
.lt-form .form-group.tnc input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}
.lt-form .form-group.tnc label {
    font-size: 13px;
    color: #666;
    vertical-align: middle;
    cursor: pointer;
}
.lt-form .form-group.tnc a {
    color: #e74c3c;
    text-decoration: none;
}
.lt-form .form-group.tnc a:hover {
    text-decoration: underline;
}

/* ---- login/register buttons ---- */
.lt-form .btn-primary,
.lt-form .go-reg {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #e74c3c;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}
.lt-form .btn-primary:hover,
.lt-form .go_reg:hover {
    background: #c0392b;
}

/* ---- account links ---- */
.account-link {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}
.account-link a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}
.account-link a:hover {
    text-decoration: underline;
}

/* ---- social connect (decorative, kept for layout) ---- */
.social-connect {
    margin-top: 20px;
    text-align: center;
}
.social-connect a {
    display: block;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: opacity .2s;
}
.social-connect a:hover {
    opacity: 0.85;
}
.social-connect .facebook {
    background: #3b5998;
}
.social-connect .google-plus {
    background: #dd4b39;
}

/* ---- authcode image ---- */
.authcode {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    vertical-align: middle;
}

/* ---- register type selector (register.html) ---- */
.lt-reg-type {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
}
.lt-reg-type h2 {
    text-align: center;
    font-size: 24px;
    color: #2d3e50;
    margin: 0 0 10px;
    font-weight: 700;
}
.lt-reg-type .subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 40px;
    font-size: 14px;
}
.lt-reg-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.lt-reg-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    display: block;
}
.lt-reg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.lt-reg-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #e74c3c;
}
.lt-reg-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3e50;
    margin: 0 0 8px;
}
.lt-reg-card p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ---- register form sections ---- */
.lt-reg-section {
    max-width: 600px;
    margin: 0 auto;
}
.lt-reg-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3e50;
    padding-bottom: 12px;
    border-bottom: 2px solid #e74c3c;
    margin: 0 0 20px;
}
.lt-reg-section-title .back-link {
    float: right;
    font-size: 13px;
    font-weight: 400;
    color: #999;
}
.lt-reg-section-title .back-link:hover {
    color: #e74c3c;
}

/* ---- form row for register (label + input stacked) ---- */
.lt-form-row {
    margin-bottom: 18px;
}
.lt-form-row label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.lt-form-row label .req {
    color: #e74c3c;
    margin-right: 3px;
}
.lt-form-row .form-control {
    display: block;
    width: 100%;
}
.lt-form-row select.form-control {
    height: 46px;
    appearance: auto;
}

/* ---- password strength indicator ---- */
.pw-strength {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 18px;
}
.pw-strength span {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    transition: background .2s;
}
.pw-strength.weak span:nth-child(1) {
    background: #e74c3c;
}
.pw-strength.medium span:nth-child(1),
.pw-strength.medium span:nth-child(2) {
    background: #f39c12;
}
.pw-strength.strong span:nth-child(1),
.pw-strength.strong span:nth-child(2),
.pw-strength.strong span:nth-child(3) {
    background: #27ae60;
}

/* compat: old pw_check divs hidden replacement */
.pw_check {
    display: none;
}

/* ---- captcha row ---- */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-row .form-control {
    flex: 1;
}
.captcha-row img {
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
}

/* ---- SMS code row ---- */
.sms-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.sms-row .form-control {
    flex: 1;
}
.sms-row .btn-sms {
    white-space: nowrap;
    padding: 0 16px;
    height: 46px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    background: #fff;
    color: #e74c3c;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
.sms-row .btn-sms:hover {
    background: #e74c3c;
    color: #fff;
}
.sms-row .btn-sms:disabled,
.sms-row .btn-sms.disabled {
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* ---- check question ---- */
.qfont {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* ---- validation messages ---- */
.msg-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
    display: block;
}

/* ---- textarea ---- */
.lt-form textarea.form-control {
    height: auto;
    min-height: 120px;
    padding: 12px 15px;
    resize: vertical;
}

/* ---- agreement checkbox ---- */
.lt-agreement {
    margin: 20px 0;
    font-size: 13px;
    color: #666;
}
.lt-agreement input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}
.lt-agreement a {
    color: #e74c3c;
    text-decoration: none;
}
.lt-agreement a:hover {
    text-decoration: underline;
}

/* ---- responsive ---- */
@media (max-width: 768px) {
    .account-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    .lt-reg-cards {
        flex-direction: column;
        align-items: center;
    }
    .lt-reg-card {
        width: 100%;
        max-width: 280px;
    }
}
