/* ORDC auth pages — matches site #07294d / #ffc600 */
.auth-page-section {
    padding: 40px 0 70px;
    background: linear-gradient(160deg, #f4f6f9 0%, #e8edf3 45%, #f8f9fb 100%);
    min-height: calc(100vh - 120px);
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(7, 41, 77, 0.12);
    overflow: hidden;
    border: 1px solid rgba(7, 41, 77, 0.06);
}

.auth-card--wide {
    max-width: 560px;
}

.auth-card__head {
    text-align: center;
    padding: 28px 28px 8px;
}

.auth-card__head img {
    max-height: 100px;
    width: auto;
    margin-bottom: 12px;
}

.auth-card__head h3 {
    color: #07294d;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.auth-card__head h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #ffc600;
    border-radius: 2px;
}

.auth-card__head p {
    color: #6c757d;
    font-size: 14px;
    margin: 8px 0 0;
}

.auth-card__body {
    padding: 20px 32px 32px;
}

.auth-card__body .alert {
    border-radius: 8px;
    font-size: 14px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    color: #07294d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.auth-register-card .singel-form.form-group {
    margin-bottom: 18px;
}

.auth-register-card select.auth-input,
.auth-register-card select.form-control {
    text-align: left;
    text-align-last: left;
    -moz-text-align-last: left;
    padding-left: 16px;
    padding-right: 36px;
    cursor: pointer;
}

.auth-register-card select.auth-input option,
.auth-register-card select.form-control option {
    text-align: left;
    direction: ltr;
}

/* nice-select (main.js) replaces native select */
.auth-register-card .nice-select {
    width: 100% !important;
    float: none;
    display: block !important;
    height: 48px;
    line-height: 46px;
    text-align: left !important;
    padding: 0 36px 0 16px;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    background: #fafbfc;
    color: #333;
    font-size: 15px;
    box-sizing: border-box;
    white-space: nowrap;
}

.auth-register-card .nice-select .current {
    display: block;
    width: 100%;
    text-align: left !important;
    line-height: 46px;
    padding: 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-register-card .nice-select.open,
.auth-register-card .nice-select:focus,
.auth-register-card .nice-select:active {
    border-color: #ffc600;
    box-shadow: 0 0 0 3px rgba(255, 198, 0, 0.25);
    background: #fff;
}

.auth-register-card .nice-select .list {
    width: 100%;
    border-radius: 10px;
    margin-top: 6px;
    box-shadow: 0 8px 24px rgba(7, 41, 77, 0.12);
}

.auth-register-card .nice-select .option {
    text-align: left;
    line-height: 38px;
    min-height: 38px;
    padding-left: 16px;
    padding-right: 16px;
}

.auth-register-card .has-error .nice-select {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12);
}

.auth-register-card .has-error .form-control,
.auth-register-card .has-error .auth-input,
.auth-register-card .has-error select {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12);
}

.auth-register-card .help-block.with-errors {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

.auth-register-card .help-block.with-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-register-card .help-block.with-errors li {
    margin: 0;
}

.auth-register-card .has-error .login-checkbox {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.auth-register-card .auth-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-field label .req-text {
    color: #dc3545;
    font-style: normal;
}

.auth-input,
.auth-card .form-control,
.auth-card .login-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}

.auth-input:focus,
.auth-card .form-control:focus,
.auth-card .login-input:focus {
    outline: none;
    border-color: #ffc600;
    box-shadow: 0 0 0 3px rgba(255, 198, 0, 0.25);
    background: #fff;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #07294d;
    opacity: 0.45;
    font-size: 16px;
}

.auth-input-wrap .auth-input {
    padding-left: 42px;
}

.auth-btn-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #ffc600;
    color: #07294d;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.auth-btn-submit:hover {
    background: #e6b200;
    color: #07294d;
}

.auth-btn-submit:active {
    transform: scale(0.98);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 22px 0 18px;
    color: #8a939e;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 14px;
}

.auth-divider--social {
    margin: 20px 0 16px;
    color: #9aa3af;
    font-size: 13px;
}

.auth-social {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
}

.auth-social__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 88px;
    padding: 14px 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4e8ee;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.auth-social__btn:hover:not(.auth-social__btn--disabled) {
    border-color: #d0d7e2;
    box-shadow: 0 4px 14px rgba(7, 41, 77, 0.08);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.auth-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    line-height: 1;
    text-align: center;
}

.auth-social__icon i {
    display: block;
    margin: 0 auto;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

.auth-social__label {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.auth-social__btn--facebook .auth-social__icon i,
.auth-social__btn--facebook .auth-social__label {
    color: #1877f2;
}

.auth-social__btn--google .auth-social__icon i {
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #4285f4 0%, #ea4335 45%, #fbbc05 70%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-social__btn--google .auth-social__label {
    color: #5f6368;
}

.auth-social__btn--line .auth-social__icon i,
.auth-social__btn--line .auth-social__label {
    color: #06c755;
}

.auth-social__btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.auth-social-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    color: #9aa3af;
    line-height: 1.5;
}

.auth-footer-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
    font-size: 14px;
}

.auth-footer-links a {
    color: #07294d;
    font-weight: 500;
}

.auth-footer-links a:hover {
    color: #ffc600;
}

.auth-footer-links .sep {
    color: #ccc;
    margin: 0 8px;
}

.auth-register-card .singel-form {
    margin-bottom: 0;
}

.auth-register-card .section-title {
    display: none;
}

@media (max-width: 575px) {
    .auth-card__body {
        padding: 16px 20px 24px;
    }

    .auth-social {
        gap: 8px;
    }

    .auth-social__btn {
        min-height: 76px;
        padding: 10px 4px;
    }

    .auth-social__icon i {
        font-size: 22px;
    }

    .auth-social__label {
        font-size: 11px;
    }
}

/* แจ้งเตือน username / email ซ้ำ (register + admin) */
.ordc-dupe-msg {
    display: none;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 6px;
}

.ordc-dupe-msg--error,
.ordc-dupe-msg.text-danger {
    color: #dc3545;
}

.ordc-dupe-msg--ok,
.ordc-dupe-msg.text-success {
    color: #28a745;
}

.ordc-input-dupe-error,
.auth-input.ordc-input-dupe-error,
.form-control.ordc-input-dupe-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.2);
}
