.auth-page {
    background-color: #fcf8f9;
    color: #1b1b1c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative
}

.auth-page .auth-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden
}

.auth-page .auth-container {
    max-width: 540px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 40px -15px rgba(62, 39, 35, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 10
}

@media (min-width:768px) {
    .auth-page .auth-main {
        padding: 64px
    }
}

.auth-page .auth-image-panel {
    display: none;
    position: relative;
    height: 100%;
    min-height: 600px
}

@media (min-width:768px) {
    .auth-page .auth-image-panel {
        display: block
    }
}

.auth-page .auth-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center
}

.auth-page .auth-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 27, 28, 0.6), transparent)
}

.auth-page .auth-image-content {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    color: #ffffff
}

.auth-page .auth-image-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 8px 0
}

.auth-page .auth-image-content p {
    font-size: 16px;
    line-height: 24px;
    opacity: 0.9;
    margin: 0
}

.auth-page .auth-form-panel {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

@media (min-width:768px) {
    .auth-page .auth-form-panel {
        padding: 25px
    }
}

.auth-page .auth-header {
    text-align: center;
    margin-bottom: 10px
}

@media (min-width:768px) {
    .auth-page .auth-header {
        text-align: left
    }
}

.auth-page .auth-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1b1b1c;
    text-align: center
}

@media (min-width:768px) {
    .auth-page .auth-header h2 {
        font-size: 32px;
        text-align: center;
        line-height: 40px;
        letter-spacing: -0.01em;
        margin-bottom: 10px
    }
}

.auth-page .auth-header p {
    font-size: 16px;
    line-height: 24px;
    color: #4e4635;
    margin: 0;
    display: none
}

.auth-page .auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.auth-page .auth-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

@media (min-width:768px) {
    .auth-page .auth-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 17px 10px
    }

    .auth-page .auth-form-grid-full {
        grid-column: 1 / -1
    }
}

.auth-page .auth-form-group label {
    display: block;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: #1b1b1c;
    margin-bottom: 10px
}

.auth-page .auth-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px
}

.auth-page .auth-form-row label {
    margin-bottom: 0
}

.auth-page .auth-forgot-link {
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: #e3a6ab;
    text-decoration: none;
    transition: color 0.2s
}

.auth-page .auth-forgot-link:hover {
    color: #946f00
}

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

.auth-page .auth-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(116, 88, 83, 0.6);
    font-variation-settings: 'FILL' 0;
    font-size: 20px
}

.auth-page .auth-input-wrap input {
    width: 100%;
    border: 1px solid rgba(210, 197, 175, 0.5);
    border-radius: 8px;
    padding: 12px 16px 12px 44px;
    font-family: inherit;
    font-size: 14px;
    line-height: 24px;
    color: #1b1b1c;
    transition: border-color 0.2s, box-shadow 0.2s
}

.auth-page .auth-input-wrap input:focus {
    outline: none;
    border-color: #e3a6ab;
    box-shadow: 0 0 0 1px #e3a6ab
}

.auth-page .auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: rgba(116, 88, 83, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s
}

.auth-page .auth-password-toggle:hover {
    color: #e3a6ab
}

.auth-page .auth-password-toggle span {
    font-variation-settings: 'FILL' 0;
    font-size: 20px
}

.auth-page .auth-remember {
    display: flex;
    align-items: center
}

.auth-page .auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-color: rgba(210, 197, 175, 0.5);
    background-color: #ffffff;
    cursor: pointer
}

.auth-page .auth-remember label {
    font-size: 14px;
    color: #4e4635;
    cursor: pointer
}

.auth-page .auth-remember label a {
    color: #e3a6ab;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s
}

.auth-page .auth-remember label a:hover {
    color: #946f00;
    text-decoration: underline
}

.auth-page .auth-submit-btn {
    width: 100%;
    background-color: #e3a6ab;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0.05em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s
}

.auth-page .auth-submit-btn:hover {
    background-color: #e3a6ab
}

.auth-page .auth-social {
    margin-top: 32px
}

.auth-page .auth-social-divider {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px
}

.auth-page .auth-social-divider::before,
.auth-page .auth-social-divider::after {
    content: '';
    flex-grow: 1;
    border-top: 1px solid rgba(210, 197, 175, 0.3)
}

.auth-page .auth-social-divider span {
    padding: 0 16px;
    font-size: 14px;
    color: #4e4635
}

.auth-page .auth-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.auth-page .auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(210, 197, 175, 0.3);
    background-color: #fcf8f9;
    color: #1b1b1c;
    font-size: 14px;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s
}

.auth-page .auth-social-btn img {
    width: 20px;
    height: 20px;
    margin-right: 8px
}

.auth-page .auth-footer-text {
    margin-top: 19px;
    text-align: center;
    font-size: 16px;
    color: #4e4635
}

.auth-page .auth-footer-text a {
    color: #e3a6ab;
    font-weight: 600;
    text-decoration: none
}

.auth-page .auth-footer-text a:hover {
    text-decoration: underline
}

body.is-auth-page .site-header,
body.is-auth-page .site-footer {
    display: none !important
}

.auth-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e3a6ab;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    z-index: 20;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 8px
}

.auth-back-btn:hover {
    color: #4e4635
}

@media(max-width:990px) {
    .auth-page .auth-header h2 {
        font-size: 25px;
        margin-bottom: 10px
    }
}

.auth-agent-toggle-card {
    background: #f1f7f9;
    border: 1px solid #d0e4ea;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 4px 0 6px 0;
    transition: all 0.2s ease
}

.auth-agent-toggle-card:hover {
    border-color: #0d5c75
}

.auth-agent-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0 !important;
    gap: 12px
}

.auth-agent-toggle-info {
    display: flex;
    align-items: center;
    gap: 10px
}

.auth-agent-toggle-icon {
    font-size: 24px;
    color: #0d5c75
}

.auth-agent-toggle-texts {
    display: flex;
    flex-direction: column
}

.auth-agent-toggle-title {
    font-size: 14px;
    font-weight: 600;
    color: #1b1b1c;
    line-height: 1.3
}

.auth-agent-toggle-sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3
}

.auth-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0
}

.auth-switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.auth-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px
}

.auth-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2)
}

.auth-switch input:checked+.auth-switch-slider {
    background-color: #0d5c75
}

.auth-switch input:checked+.auth-switch-slider:before {
    transform: translateX(20px)
}

.auth-agent-fields {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 6px;
    animation: fadeIn 0.3s ease
}

.auth-required {
    color: #ef4444;
    font-weight: bold
}

.auth-upload-box {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer
}

.auth-upload-box:hover {
    border-color: #0d5c75;
    background-color: #f1f7f9
}

.auth-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2
}

.auth-upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 0 !important;
    cursor: pointer
}

.auth-upload-icon {
    font-size: 28px;
    color: #0d5c75;
    flex-shrink: 0
}

.auth-upload-content {
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.auth-upload-text {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.auth-upload-hint {
    font-size: 11px;
    color: #94a3b8
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}