/* /transport-distance-pricing/css/access-login.css */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.tc-access-body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
}

.tc-access-bg,
.tc-access-overlay {
    position: fixed;
    inset: 0;
}

.tc-access-bg {
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.06);
    z-index: 1;
}

.tc-access-overlay {
    background: rgba(0, 0, 0, 0.58);
    z-index: 2;
}

.tc-access-wrap {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.tc-access-brand {
    text-align: center;
    margin-bottom: 26px;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tc-access-logo {
    max-width: 110px;
    max-height: 110px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 16px;
    flex: 0 0 auto;
}

.tc-access-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    min-height: 1.2em;
    flex: 0 0 auto;
}

.tc-access-message {
    margin-top: 14px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(255,255,255,0.96);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    white-space: pre-wrap;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    line-height: 1.2;
    flex: 0 0 34px;
}

.tc-access-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.95);
    color: #111827;
    border-radius: 18px;
    box-shadow: 0 14px 42px rgba(0,0,0,.25);
    padding: 28px 24px;
    box-sizing: border-box;
}

.tc-access-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tc-access-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.tc-access-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    box-sizing: border-box;
    font-size: 16px;
    background: #fff;
}

.tc-access-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.tc-password-wrap {
    position: relative;
}

.tc-password-wrap input {
    padding-right: 52px;
}

.tc-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}

.tc-password-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.tc-password-toggle:hover,
.tc-password-toggle:focus,
.tc-password-toggle:active,
.tc-password-toggle:visited {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #111827;
}

.tc-password-toggle::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.tc-password-wrap button,
.tc-password-wrap button:hover,
.tc-password-wrap button:focus,
.tc-password-wrap button:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.tc-remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.tc-access-submit {
    min-height: 50px;
    border: none;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.tc-access-submit:hover {
    background: #15803d;
}

.tc-access-loading {
    text-align: center;
    color: #374151;
}

.tc-access-spinner {
    width: 26px;
    height: 26px;
    margin: 0 auto 8px;
    border: 3px solid rgba(17,24,39,0.15);
    border-top-color: #111827;
    border-radius: 50%;
    animation: tc-spin 0.9s linear infinite;
}

.tc-access-loading-text {
    font-size: 13px;
    font-weight: 600;
}

.tc-access-error {
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.tc-access-form.is-loading .tc-access-field input,
.tc-access-form.is-loading .tc-password-toggle,
.tc-access-form.is-loading .tc-access-submit,
.tc-access-form.is-loading .tc-remember-row input {
    pointer-events: none;
}

@keyframes tc-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .tc-access-card {
        max-width: 100%;
        padding: 22px 18px;
    }

    .tc-access-wrap {
        padding: 24px 14px;
    }

    .tc-access-brand {
        margin-bottom: 20px;
    }

    .tc-access-message {
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        flex-basis: 30px;
    }
}