*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.dls-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f6f8;
    padding: 40px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

.dls-auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}

/* Header */
.dls-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.dls-auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.3px;
}

.dls-auth-subtitle {
    font-size: 14px;
    color: #8a93a2;
    margin-top: 4px;
    font-weight: 400;
}

/* Type Switcher */
.dls-type-switcher {
    display: flex;
    background: #f0f2f5;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
    position: relative;
}

.dls-switch-btn {
    flex: 1;
    border: none;
    background: transparent !important;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 500;
    color: #79808d !important;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    transition: color 0.25s ease;
}

.dls-switch-btn.active {
    color: #1a1a2e !important;
}

.dls-switch-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #ffffff;
    border-radius: 7px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.dls-switch-indicator.to-legal {
    transform: translateX(100%);
}

/* Fields */
.dls-fields-group {
    animation: dls-fade-in 0.3s ease;
}

@keyframes dls-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dls-field-wrap {
    margin-bottom: 18px;
}

.dls-field-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

.dls-field-wrap input,
.dls-field-wrap select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a2e;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.dls-field-wrap input:focus,
.dls-field-wrap select:focus {
    border-color: #a0aec0;
    box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.15);
}

.dls-field-wrap input.dls-error,
.dls-field-wrap select.dls-error {
    border-color: #e57373;
}

.dls-field-error {
    display: block;
    font-size: 11px;
    color: #e57373;
    margin-top: 4px;
    min-height: 16px;
}

/* Password Strength */
.dls-password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dls-strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.dls-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.dls-strength-label {
    font-size: 11px;
    font-weight: 500;
    min-width: 46px;
    color: #8a93a2;
}

/* Error Box */
.dls-error-box {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #c53030;
    line-height: 1.6;
}

/* Submit Button */
.dls-submit-btn {
    width: 100%;
    padding: 12px;
    background: #2d3748 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.dls-submit-btn:hover {
    background: #1a202c;
}

.dls-submit-btn:active {
    transform: scale(0.98);
}

.dls-submit-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* Loader Spinner */
.dls-btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: dls-spin 0.7s linear infinite;
}

@keyframes dls-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 520px) {
    .dls-auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .dls-auth-title {
        font-size: 19px;
    }
}



.dls-verify-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.dls-verify-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.dls-verify-dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 420px;
    margin: 10vh auto 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    z-index: 2;
}

.dls-verify-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.dls-verify-dialog h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.dls-verify-text {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 18px;
}

.dls-verify-field-wrap {
    margin-bottom: 18px;
}

.dls-verify-field-wrap input {
    text-align: center;
    letter-spacing: 6px;
    font-size: 22px;
    font-weight: 700;
}

.dls-verify-error {
    margin-bottom: 16px;
}
